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
ConstructorsModifierConstructorDescriptionprotected
InstanceInfoConfigImpl
(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.boolean
int
hashCode()
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 int
port()
Port.int
port
(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.boolean
portEnabled
(boolean tls) Returns whether the effective port is enabled.portInfo()
(Non-secure) port information.The secure health check URL.default int
Secure port.int
securePort
(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.boolean
securePortEnabled
(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()
boolean
Whether 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:InstanceInfoConfig
Returns the prototype's instance ID or a default value.- Specified by:
instanceId
in 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: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 interfaceInstanceInfoConfig
- Parameters:
actualPort
- the actual porttls
- whether or nottls
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 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: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 interfaceInstanceInfoConfig
- Parameters:
actualPort
- the actual porttls
- whether or nottls
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 interfaceInstanceInfoConfig
- Parameters:
tls
- whether or not TLS is in effect- Returns:
- whether the effective secure port is enabled
-
appName
Description copied from interface:InstanceInfoConfig
The app name.- Specified by:
appName
in interfaceInstanceInfoConfig
- Returns:
- the app name
-
appGroupName
Description copied from interface:InstanceInfoConfig
The app group name.- Specified by:
appGroupName
in interfaceInstanceInfoConfig
- Returns:
- the app group name
-
asgName
Description copied from interface:InstanceInfoConfig
The ASG name.ASG stands for Auto Scaling Group.
- Specified by:
asgName
in interfaceInstanceInfoConfig
- Returns:
- the ASG name
-
healthCheckUrl
Description copied from interface:InstanceInfoConfig
The health check URL.- Specified by:
healthCheckUrl
in interfaceInstanceInfoConfig
- Returns:
- the health check URL
-
healthCheckUrlPath
Description copied from interface:InstanceInfoConfig
The health check URL path (used if any health check URL is not explicitly set).- Specified by:
healthCheckUrlPath
in interfaceInstanceInfoConfig
- Returns:
- the health check URL path
-
homePageUrl
Description copied from interface:InstanceInfoConfig
The home page URL.- Specified by:
homePageUrl
in interfaceInstanceInfoConfig
- Returns:
- the home page URL
-
homePageUrlPath
Description copied from interface:InstanceInfoConfig
The home page URL path (used if the homepage URL is not explicitly set).- Specified by:
homePageUrlPath
in interfaceInstanceInfoConfig
- Returns:
- the home page URL path
-
hostName
Description copied from interface:InstanceInfoConfig
The hostname.- Specified by:
hostName
in interfaceInstanceInfoConfig
- Returns:
- the hostname
-
instanceId
Description copied from interface:InstanceInfoConfig
The instance id.- Specified by:
instanceId
in interfaceInstanceInfoConfig
- Returns:
- the instance id
-
ipAddr
Description copied from interface:InstanceInfoConfig
The IP address.- Specified by:
ipAddr
in interfaceInstanceInfoConfig
- Returns:
- the IP address
-
jsonBuilderFactory
Description copied from interface:InstanceInfoConfig
- Specified by:
jsonBuilderFactory
in interfaceInstanceInfoConfig
- Returns:
- the
JsonBuilderFactory
-
leaseInfo
Description copied from interface:InstanceInfoConfig
TheLeaseInfoConfig
.- Specified by:
leaseInfo
in interfaceInstanceInfoConfig
- Returns:
- the
LeaseInfoConfig
- See Also:
-
metadata
Description copied from interface:InstanceInfoConfig
Metadata.- Specified by:
metadata
in interfaceInstanceInfoConfig
- Returns:
- the metadata
-
portInfo
Description copied from interface:InstanceInfoConfig
(Non-secure) port information.- Specified by:
portInfo
in interfaceInstanceInfoConfig
- Returns:
PortInfoConfig
-
secureHealthCheckUrl
Description copied from interface:InstanceInfoConfig
The secure health check URL.- Specified by:
secureHealthCheckUrl
in interfaceInstanceInfoConfig
- Returns:
- the secure health check URL
-
securePortInfo
Description copied from interface:InstanceInfoConfig
Secure port information.- Specified by:
securePortInfo
in interfaceInstanceInfoConfig
- Returns:
PortInfoConfig
-
statusPageUrl
Description copied from interface:InstanceInfoConfig
The status page URL.- Specified by:
statusPageUrl
in interfaceInstanceInfoConfig
- Returns:
- the status page URL
-
statusPageUrlPath
Description copied from interface:InstanceInfoConfig
The status page URL path (used if status page URL is not explicitly set).- Specified by:
statusPageUrlPath
in interfaceInstanceInfoConfig
- Returns:
- the status page URL path
-
trafficEnabled
public boolean trafficEnabled()Description copied from interface:InstanceInfoConfig
Whether traffic is enabled on startup (normallytrue
).- Specified by:
trafficEnabled
in interfaceInstanceInfoConfig
- Returns:
- whether traffic is enabled on startup
-
vipAddress
Description copied from interface:InstanceInfoConfig
The VIP address.VIP stands for Virtual IP.
- Specified by:
vipAddress
in interfaceInstanceInfoConfig
- Returns:
- the VIP address
-
secureVipAddress
Description copied from interface:InstanceInfoConfig
The secure VIP address.VIP stands for Virtual IP.
- Specified by:
secureVipAddress
in 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
-