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
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
getScheme
- Specified by:
getSchemein interfaceorg.springframework.cloud.client.ServiceInstance
-
equals
-
hashCode
public int hashCode() -
toString
-