Class InstanceInfoConfig.BuilderBase.InstanceInfoConfigImpl

java.lang.Object
io.helidon.integrations.eureka.InstanceInfoConfig.BuilderBase.InstanceInfoConfigImpl
All Implemented Interfaces:
Prototype.Api, InstanceInfoConfig
Enclosing class:
InstanceInfoConfig.BuilderBase<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InstanceInfoConfig>

protected static class InstanceInfoConfig.BuilderBase.InstanceInfoConfigImpl extends Object implements InstanceInfoConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • InstanceInfoConfigImpl

      protected InstanceInfoConfigImpl(InstanceInfoConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • instanceId

      public String instanceId(int actualPort)
      Description copied from interface: InstanceInfoConfig
      Returns the prototype's instance ID or a default value.
      Specified by:
      instanceId in interface InstanceInfoConfig
      Parameters:
      actualPort - the actual port; used when computing default value
      Returns:
      the instance ID
    • port

      public int port(int actualPort, boolean tls)
      Description copied from interface: InstanceInfoConfig
      Returns the prototype's effective port, taking into account what the actual port is and whether TLS is in effect or not.
      Specified by:
      port in interface InstanceInfoConfig
      Parameters:
      actualPort - the actual port
      tls - whether or not tls is in effect
      Returns:
      the appropriate port
    • portEnabled

      public boolean portEnabled(boolean tls)
      Description copied from interface: InstanceInfoConfig
      Returns whether the effective port is enabled.
      Specified by:
      portEnabled in interface InstanceInfoConfig
      Parameters:
      tls - whether or not TLS is in effect
      Returns:
      whether the effective port is enabled
    • securePort

      public int securePort(int actualPort, boolean tls)
      Description copied from interface: InstanceInfoConfig
      Returns the prototype's effective secure port, taking into account what the actual port is and whether TLS is in effect or not.
      Specified by:
      securePort in interface InstanceInfoConfig
      Parameters:
      actualPort - the actual port
      tls - whether or not tls is in effect
      Returns:
      the appropriate secure port
    • securePortEnabled

      public boolean securePortEnabled(boolean tls)
      Description copied from interface: InstanceInfoConfig
      Returns whether the effective secure port is enabled.
      Specified by:
      securePortEnabled in interface InstanceInfoConfig
      Parameters:
      tls - whether or not TLS is in effect
      Returns:
      whether the effective secure port is enabled
    • appName

      public String appName()
    • appGroupName

      public String appGroupName()
    • asgName

      public Optional<String> asgName()
    • healthCheckUrl

      public Optional<URI> healthCheckUrl()
    • healthCheckUrlPath

      public String healthCheckUrlPath()
    • homePageUrl

      public Optional<URI> homePageUrl()
    • homePageUrlPath

      public String homePageUrlPath()
    • hostName

      public String hostName()
    • instanceId

      public Optional<String> instanceId()
    • ipAddr

      public String ipAddr()
    • jsonBuilderFactory

      public JsonBuilderFactory jsonBuilderFactory()
    • leaseInfo

      public LeaseInfoConfig leaseInfo()
    • metadata

      public Map<String,String> metadata()
    • portInfo

      public PortInfoConfig portInfo()
    • secureHealthCheckUrl

      public Optional<URI> secureHealthCheckUrl()
    • securePortInfo

      public PortInfoConfig securePortInfo()
    • statusPageUrl

      public Optional<URI> statusPageUrl()
    • statusPageUrlPath

      public String statusPageUrlPath()
    • trafficEnabled

      public boolean trafficEnabled()
    • vipAddress

      public Optional<String> vipAddress()
    • secureVipAddress

      public Optional<String> secureVipAddress()
    • toString

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

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

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

      default int port()
      Port.
      Returns:
      the port
    • securePort

      default int securePort()
      Secure port.
      Returns:
      the secure port