Package io.helidon.integrations.eureka
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.integrations.eureka.InstanceInfoConfig
InstanceInfoConfig.Builder, InstanceInfoConfig.BuilderBase<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends InstanceInfoConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstanceInfoConfigImpl(InstanceInfoConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionThe app group name.appName()The app name.asgName()The ASG name.booleaninthashCode()The health check URL.The health check URL path (used if any health check URL is not explicitly set).The home page URL.The home page URL path (used if the homepage URL is not explicitly set).hostName()The hostname.The instance id.instanceId(int actualPort) Returns the prototype's instance ID or a default value.ipAddr()The IP address.TheLeaseInfoConfig.metadata()Metadata.default intport()Port.intport(int actualPort, boolean tls) Returns the prototype's effective port, taking into account what the actual port is and whether TLS is in effect or not.booleanportEnabled(boolean tls) Returns whether the effective port is enabled.portInfo()(Non-secure) port information.The secure health check URL.default intSecure port.intsecurePort(int actualPort, boolean tls) Returns the prototype's effective secure port, taking into account what the actual port is and whether TLS is in effect or not.booleansecurePortEnabled(boolean tls) Returns whether the effective secure port is enabled.Secure port information.The secure VIP address.The status page URL.The status page URL path (used if status page URL is not explicitly set).toString()booleanWhether traffic is enabled on startup (normallytrue).The VIP address.
-
Constructor Details
-
InstanceInfoConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
instanceId
Description copied from interface:InstanceInfoConfigReturns the prototype's instance ID or a default value.- Specified by:
instanceIdin interfaceInstanceInfoConfig- 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:InstanceInfoConfigReturns the prototype's effective port, taking into account what the actual port is and whether TLS is in effect or not.- Specified by:
portin interfaceInstanceInfoConfig- Parameters:
actualPort- the actual porttls- whether or nottlsis in effect- Returns:
- the appropriate port
-
portEnabled
public boolean portEnabled(boolean tls) Description copied from interface:InstanceInfoConfigReturns whether the effective port is enabled.- Specified by:
portEnabledin interfaceInstanceInfoConfig- 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:InstanceInfoConfigReturns the prototype's effective secure port, taking into account what the actual port is and whether TLS is in effect or not.- Specified by:
securePortin interfaceInstanceInfoConfig- Parameters:
actualPort- the actual porttls- whether or nottlsis in effect- Returns:
- the appropriate secure port
-
securePortEnabled
public boolean securePortEnabled(boolean tls) Description copied from interface:InstanceInfoConfigReturns whether the effective secure port is enabled.- Specified by:
securePortEnabledin interfaceInstanceInfoConfig- Parameters:
tls- whether or not TLS is in effect- Returns:
- whether the effective secure port is enabled
-
appName
Description copied from interface:InstanceInfoConfigThe app name.- Specified by:
appNamein interfaceInstanceInfoConfig- Returns:
- the app name
-
appGroupName
Description copied from interface:InstanceInfoConfigThe app group name.- Specified by:
appGroupNamein interfaceInstanceInfoConfig- Returns:
- the app group name
-
asgName
Description copied from interface:InstanceInfoConfigThe ASG name.ASG stands for Auto Scaling Group.
- Specified by:
asgNamein interfaceInstanceInfoConfig- Returns:
- the ASG name
-
healthCheckUrl
Description copied from interface:InstanceInfoConfigThe health check URL.- Specified by:
healthCheckUrlin interfaceInstanceInfoConfig- Returns:
- the health check URL
-
healthCheckUrlPath
Description copied from interface:InstanceInfoConfigThe health check URL path (used if any health check URL is not explicitly set).- Specified by:
healthCheckUrlPathin interfaceInstanceInfoConfig- Returns:
- the health check URL path
-
homePageUrl
Description copied from interface:InstanceInfoConfigThe home page URL.- Specified by:
homePageUrlin interfaceInstanceInfoConfig- Returns:
- the home page URL
-
homePageUrlPath
Description copied from interface:InstanceInfoConfigThe home page URL path (used if the homepage URL is not explicitly set).- Specified by:
homePageUrlPathin interfaceInstanceInfoConfig- Returns:
- the home page URL path
-
hostName
Description copied from interface:InstanceInfoConfigThe hostname.- Specified by:
hostNamein interfaceInstanceInfoConfig- Returns:
- the hostname
-
instanceId
Description copied from interface:InstanceInfoConfigThe instance id.- Specified by:
instanceIdin interfaceInstanceInfoConfig- Returns:
- the instance id
-
ipAddr
Description copied from interface:InstanceInfoConfigThe IP address.- Specified by:
ipAddrin interfaceInstanceInfoConfig- Returns:
- the IP address
-
jsonBuilderFactory
Description copied from interface:InstanceInfoConfig- Specified by:
jsonBuilderFactoryin interfaceInstanceInfoConfig- Returns:
- the
JsonBuilderFactory
-
leaseInfo
Description copied from interface:InstanceInfoConfigTheLeaseInfoConfig.- Specified by:
leaseInfoin interfaceInstanceInfoConfig- Returns:
- the
LeaseInfoConfig - See Also:
-
metadata
Description copied from interface:InstanceInfoConfigMetadata.- Specified by:
metadatain interfaceInstanceInfoConfig- Returns:
- the metadata
-
portInfo
Description copied from interface:InstanceInfoConfig(Non-secure) port information.- Specified by:
portInfoin interfaceInstanceInfoConfig- Returns:
PortInfoConfig
-
secureHealthCheckUrl
Description copied from interface:InstanceInfoConfigThe secure health check URL.- Specified by:
secureHealthCheckUrlin interfaceInstanceInfoConfig- Returns:
- the secure health check URL
-
securePortInfo
Description copied from interface:InstanceInfoConfigSecure port information.- Specified by:
securePortInfoin interfaceInstanceInfoConfig- Returns:
PortInfoConfig
-
statusPageUrl
Description copied from interface:InstanceInfoConfigThe status page URL.- Specified by:
statusPageUrlin interfaceInstanceInfoConfig- Returns:
- the status page URL
-
statusPageUrlPath
Description copied from interface:InstanceInfoConfigThe status page URL path (used if status page URL is not explicitly set).- Specified by:
statusPageUrlPathin interfaceInstanceInfoConfig- Returns:
- the status page URL path
-
trafficEnabled
public boolean trafficEnabled()Description copied from interface:InstanceInfoConfigWhether traffic is enabled on startup (normallytrue).- Specified by:
trafficEnabledin interfaceInstanceInfoConfig- Returns:
- whether traffic is enabled on startup
-
vipAddress
Description copied from interface:InstanceInfoConfigThe VIP address.VIP stands for Virtual IP.
- Specified by:
vipAddressin interfaceInstanceInfoConfig- Returns:
- the VIP address
-
secureVipAddress
Description copied from interface:InstanceInfoConfigThe secure VIP address.VIP stands for Virtual IP.
- Specified by:
secureVipAddressin interfaceInstanceInfoConfig- Returns:
- the secure VIP address
-
toString
-
equals
-
hashCode
public int hashCode() -
port
default int port()Port.- Returns:
- the port
-
securePort
default int securePort()Secure port.- Returns:
- the secure port
-