Class EurekaServiceInstance

java.lang.Object
io.micronaut.discovery.eureka.EurekaServiceInstance
All Implemented Interfaces:
io.micronaut.discovery.ServiceInstance

public class EurekaServiceInstance extends Object implements io.micronaut.discovery.ServiceInstance
A ServiceInstance implementation for Eureka.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • EurekaServiceInstance

      public EurekaServiceInstance(InstanceInfo instanceInfo)
      Parameters:
      instanceInfo - The instance info
  • Method Details

    • getInstanceId

      public Optional<String> getInstanceId()
      Specified by:
      getInstanceId in interface io.micronaut.discovery.ServiceInstance
    • getHealthStatus

      public io.micronaut.health.HealthStatus getHealthStatus()
      Specified by:
      getHealthStatus in interface io.micronaut.discovery.ServiceInstance
    • getZone

      public Optional<String> getZone()
      Specified by:
      getZone in interface io.micronaut.discovery.ServiceInstance
    • getRegion

      public Optional<String> getRegion()
      Specified by:
      getRegion in interface io.micronaut.discovery.ServiceInstance
    • getGroup

      public Optional<String> getGroup()
      Specified by:
      getGroup in interface io.micronaut.discovery.ServiceInstance
    • getInstanceInfo

      public InstanceInfo getInstanceInfo()
      Returns:
      The Eureka InstanceInfo
    • getId

      public String getId()
      Specified by:
      getId in interface io.micronaut.discovery.ServiceInstance
    • getURI

      public URI getURI()
      Specified by:
      getURI in interface io.micronaut.discovery.ServiceInstance
    • getMetadata

      public io.micronaut.core.convert.value.ConvertibleValues<String> getMetadata()
      Specified by:
      getMetadata in interface io.micronaut.discovery.ServiceInstance
    • toString

      public String toString()
      Overrides:
      toString in class Object