Class EurekaInstance

java.lang.Object
org.kiwiproject.registry.eureka.common.EurekaInstance

public final class EurekaInstance extends Object
This model matches the format of the data being sent to the Eureka server
  • Method Details

    • getInstanceId

      public String getInstanceId()
    • fromServiceInstance

      public static EurekaInstance fromServiceInstance(ServiceInstance serviceInstance)
    • toServiceInstance

      public ServiceInstance toServiceInstance()
    • toServiceInstance

      public ServiceInstance toServiceInstance(NativeRegistryData nativeRegistryData)
    • builder

      public static EurekaInstance.EurekaInstanceBuilder builder()
    • getApp

      public String getApp()
    • getStatus

      public String getStatus()
    • getDataCenterInfo

      public Map<String,String> getDataCenterInfo()
    • getLeaseInfo

      public Map<String,Object> getLeaseInfo()
    • getRawResponse

      public Map<String,Object> getRawResponse()
    • getHostName

      public String getHostName()
    • getIpAddr

      public String getIpAddr()
    • getVipAddress

      public String getVipAddress()
    • getSecureVipAddress

      public String getSecureVipAddress()
    • getPort

      public Map<String,Object> getPort()
    • getSecurePort

      public Map<String,Object> getSecurePort()
    • getAdminPort

      public int getAdminPort()
    • getHomePageUrl

      public String getHomePageUrl()
    • getStatusPageUrl

      public String getStatusPageUrl()
    • getHealthCheckUrl

      public String getHealthCheckUrl()
    • getMetadata

      public Map<String,String> getMetadata()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withApp

      public EurekaInstance withApp(String app)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStatus

      public EurekaInstance withStatus(String status)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDataCenterInfo

      public EurekaInstance withDataCenterInfo(Map<String,String> dataCenterInfo)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withLeaseInfo

      public EurekaInstance withLeaseInfo(Map<String,Object> leaseInfo)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRawResponse

      public EurekaInstance withRawResponse(Map<String,Object> rawResponse)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).