public class EurekaServiceInstance extends Object implements ServiceInstance
ServiceInstance
implementation for Eureka.ServiceInstance.Builder
GROUP, 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 ServiceInstance
public HealthStatus getHealthStatus()
getHealthStatus
in interface ServiceInstance
HealthStatus
of the instancepublic Optional<String> getZone()
ServiceInstance
getZone
in interface ServiceInstance
public Optional<String> getRegion()
ServiceInstance
getRegion
in interface ServiceInstance
public Optional<String> getGroup()
ServiceInstance
getGroup
in interface ServiceInstance
public InstanceInfo getInstanceInfo()
InstanceInfo
public String getId()
getId
in interface ServiceInstance
public URI getURI()
getURI
in interface ServiceInstance
public ConvertibleValues<String> getMetadata()
getMetadata
in interface ServiceInstance