public class RibbonServiceInstance
extends java.lang.Object
implements io.micronaut.discovery.ServiceInstance
Server
object to the ServiceInstance
interface.Constructor and Description |
---|
RibbonServiceInstance(com.netflix.loadbalancer.Server server,
com.netflix.loadbalancer.LoadBalancerContext lb)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getGroup() |
io.micronaut.health.HealthStatus |
getHealthStatus() |
java.lang.String |
getId() |
java.util.Optional<java.lang.String> |
getInstanceId() |
io.micronaut.core.convert.value.ConvertibleValues<java.lang.String> |
getMetadata() |
java.net.URI |
getURI() |
java.util.Optional<java.lang.String> |
getZone() |
boolean |
isSecure() |
java.net.URI |
resolve(java.net.URI relativeURI) |
public RibbonServiceInstance(com.netflix.loadbalancer.Server server, com.netflix.loadbalancer.LoadBalancerContext lb)
server
- serverlb
- loadBalancerContextpublic io.micronaut.core.convert.value.ConvertibleValues<java.lang.String> getMetadata()
getMetadata
in interface io.micronaut.discovery.ServiceInstance
public java.lang.String getId()
getId
in interface io.micronaut.discovery.ServiceInstance
public io.micronaut.health.HealthStatus getHealthStatus()
getHealthStatus
in interface io.micronaut.discovery.ServiceInstance
public java.util.Optional<java.lang.String> getInstanceId()
getInstanceId
in interface io.micronaut.discovery.ServiceInstance
public java.net.URI getURI()
getURI
in interface io.micronaut.discovery.ServiceInstance
public boolean isSecure()
isSecure
in interface io.micronaut.discovery.ServiceInstance
public java.util.Optional<java.lang.String> getZone()
getZone
in interface io.micronaut.discovery.ServiceInstance
public java.util.Optional<java.lang.String> getGroup()
getGroup
in interface io.micronaut.discovery.ServiceInstance
public java.net.URI resolve(java.net.URI relativeURI)
resolve
in interface io.micronaut.discovery.ServiceInstance