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 TypeMethodDescriptionappName()
asgName()
boolean
int
hashCode()
hostName()
instanceId
(int actualPort) Returns the prototype's instance ID or a default value.ipAddr()
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()
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.toString()
boolean
-
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
-
appGroupName
-
asgName
-
healthCheckUrl
-
healthCheckUrlPath
-
homePageUrl
-
homePageUrlPath
-
hostName
-
instanceId
-
ipAddr
-
jsonBuilderFactory
-
leaseInfo
-
metadata
-
portInfo
-
secureHealthCheckUrl
-
securePortInfo
-
statusPageUrl
-
statusPageUrlPath
-
trafficEnabled
public boolean trafficEnabled() -
vipAddress
-
secureVipAddress
-
toString
-
equals
-
hashCode
public int hashCode() -
port
default int port()Port.- Returns:
- the port
-
securePort
default int securePort()Secure port.- Returns:
- the secure port
-