public class RibbonServiceInstance extends Object implements ServiceInstance
Server
object to the ServiceInstance
interface.ServiceInstance.Builder
GROUP, REGION, ZONE
Constructor and Description |
---|
RibbonServiceInstance(com.netflix.loadbalancer.Server server,
com.netflix.loadbalancer.LoadBalancerContext lb)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getGroup()
Returns the application group.
|
HealthStatus |
getHealthStatus() |
String |
getId() |
Optional<String> |
getInstanceId() |
ConvertibleValues<String> |
getMetadata() |
URI |
getURI() |
Optional<String> |
getZone()
Returns the availability zone to use.
|
boolean |
isSecure() |
URI |
resolve(URI relativeURI)
Resolve a URI relative to this service instance.
|
public RibbonServiceInstance(com.netflix.loadbalancer.Server server, com.netflix.loadbalancer.LoadBalancerContext lb)
server
- serverlb
- loadBalancerContextpublic ConvertibleValues<String> getMetadata()
getMetadata
in interface ServiceInstance
public String getId()
getId
in interface ServiceInstance
public HealthStatus getHealthStatus()
getHealthStatus
in interface ServiceInstance
HealthStatus
of the instancepublic Optional<String> getInstanceId()
getInstanceId
in interface ServiceInstance
public URI getURI()
getURI
in interface ServiceInstance
public boolean isSecure()
isSecure
in interface ServiceInstance
public Optional<String> getZone()
ServiceInstance
getZone
in interface ServiceInstance
public Optional<String> getGroup()
ServiceInstance
getGroup
in interface ServiceInstance
public URI resolve(URI relativeURI)
ServiceInstance
resolve
in interface ServiceInstance
relativeURI
- The relative URI