Class EurekaServiceInstance

java.lang.Object
org.springframework.cloud.netflix.eureka.EurekaServiceInstance
All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance

public class EurekaServiceInstance extends Object implements org.springframework.cloud.client.ServiceInstance
An Eureka-specific ServiceInstance implementation.
Author:
Spencer Gibb, Dave Syer, Olga Maciaszek-Sharma, Tim Ysewyn
  • Constructor Details

    • EurekaServiceInstance

      public EurekaServiceInstance(com.netflix.appinfo.InstanceInfo instance)
  • Method Details

    • getInstanceInfo

      public com.netflix.appinfo.InstanceInfo getInstanceInfo()
    • getInstanceId

      public String getInstanceId()
      Specified by:
      getInstanceId in interface org.springframework.cloud.client.ServiceInstance
    • getServiceId

      public String getServiceId()
      Specified by:
      getServiceId in interface org.springframework.cloud.client.ServiceInstance
    • getHost

      public String getHost()
      Specified by:
      getHost in interface org.springframework.cloud.client.ServiceInstance
    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.springframework.cloud.client.ServiceInstance
    • isSecure

      public boolean isSecure()
      Specified by:
      isSecure in interface org.springframework.cloud.client.ServiceInstance
    • getUri

      public URI getUri()
      Specified by:
      getUri in interface org.springframework.cloud.client.ServiceInstance
    • getMetadata

      public Map<String,String> getMetadata()
      Specified by:
      getMetadata in interface org.springframework.cloud.client.ServiceInstance
    • getScheme

      public String getScheme()
      Specified by:
      getScheme in interface org.springframework.cloud.client.ServiceInstance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object