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-specificServiceInstanceimplementation.- Author:
- Spencer Gibb, Dave Syer, Olga Maciaszek-Sharma, Tim Ysewyn
-
-
Constructor Summary
Constructors Constructor Description EurekaServiceInstance(com.netflix.appinfo.InstanceInfo instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetHost()StringgetInstanceId()com.netflix.appinfo.InstanceInfogetInstanceInfo()Map<String,String>getMetadata()intgetPort()StringgetScheme()StringgetServiceId()URIgetUri()inthashCode()booleanisSecure()StringtoString()
-
-
-
Method Detail
-
getInstanceInfo
public com.netflix.appinfo.InstanceInfo getInstanceInfo()
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceId
public String getServiceId()
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
public String 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
public URI getUri()
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
public Map<String,String> getMetadata()
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
getScheme
public String getScheme()
- Specified by:
getSchemein interfaceorg.springframework.cloud.client.ServiceInstance
-
-