public class EurekaServiceInstance extends Object implements ServiceInstance
ServiceInstance implementation for Eureka.ServiceInstance.BuilderGROUP, REGION, ZONE| Constructor and Description |
|---|
EurekaServiceInstance(InstanceInfo instanceInfo) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getGroup()
Returns the application group.
|
HealthStatus |
getHealthStatus() |
String |
getId() |
Optional<String> |
getInstanceId() |
InstanceInfo |
getInstanceInfo() |
ConvertibleValues<String> |
getMetadata() |
Optional<String> |
getRegion()
Returns the region to use.
|
URI |
getURI() |
Optional<String> |
getZone()
Returns the availability zone to use.
|
String |
toString() |
public EurekaServiceInstance(InstanceInfo instanceInfo)
instanceInfo - The instance infopublic Optional<String> getInstanceId()
getInstanceId in interface ServiceInstancepublic HealthStatus getHealthStatus()
getHealthStatus in interface ServiceInstanceHealthStatus of the instancepublic Optional<String> getZone()
ServiceInstancegetZone in interface ServiceInstancepublic Optional<String> getRegion()
ServiceInstancegetRegion in interface ServiceInstancepublic Optional<String> getGroup()
ServiceInstancegetGroup in interface ServiceInstancepublic InstanceInfo getInstanceInfo()
InstanceInfopublic String getId()
getId in interface ServiceInstancepublic URI getURI()
getURI in interface ServiceInstancepublic ConvertibleValues<String> getMetadata()
getMetadata in interface ServiceInstance