Package io.helidon.integrations.eureka
Interface InstanceInfoConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
InstanceInfoConfig.BuilderBase.InstanceInfoConfigImpl
A prototype describing initial Eureka Server service instance registration details.
This interface is deliberately modeled to closely resemble the com.netflix.appinfo.InstanceInfo
class for
familiarity.
Its configuration is deliberately modeled to closely resemble that expressed by the
com.netflix.appinfo.PropertiesInstanceConfig
class and its supertypes for user familiarity.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forInstanceInfoConfig
.static class
InstanceInfoConfig.BuilderBase<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends InstanceInfoConfig> Fluent API builder base forInstanceInfoConfig
. -
Method Summary
Modifier and TypeMethodDescriptionThe app group name.appName()
The app name.asgName()
The ASG name.static InstanceInfoConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static InstanceInfoConfig.Builder
builder
(InstanceInfoConfig instance) Create a new fluent API builder from an existing instance.static InstanceInfoConfig
create()
Create a new instance with default values.static InstanceInfoConfig
Create a new instance from configuration.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).boolean
Whether traffic is enabled on startup (normallytrue
).The VIP address.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
instanceId
Returns the prototype's instance ID or a default value.- Parameters:
actualPort
- the actual port; used when computing default value- Returns:
- the instance ID
-
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.- Parameters:
actualPort
- the actual porttls
- whether or nottls
is in effect- Returns:
- the appropriate port
-
portEnabled
boolean portEnabled(boolean tls) Returns whether the effective port is enabled.- Parameters:
tls
- whether or not TLS is in effect- Returns:
- whether the effective port is enabled
-
securePort
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.- Parameters:
actualPort
- the actual porttls
- whether or nottls
is in effect- Returns:
- the appropriate secure port
-
securePortEnabled
boolean securePortEnabled(boolean tls) Returns whether the effective secure port is enabled.- Parameters:
tls
- whether or not TLS is in effect- Returns:
- whether the effective secure port is enabled
-
appName
String appName()The app name.- Returns:
- the app name
-
appGroupName
String appGroupName()The app group name.- Returns:
- the app group name
-
asgName
The ASG name.ASG stands for Auto Scaling Group.
- Returns:
- the ASG name
-
healthCheckUrl
The health check URL.- Returns:
- the health check URL
-
healthCheckUrlPath
String healthCheckUrlPath()The health check URL path (used if any health check URL is not explicitly set).- Returns:
- the health check URL path
-
homePageUrl
The home page URL.- Returns:
- the home page URL
-
homePageUrlPath
String homePageUrlPath()The home page URL path (used if the homepage URL is not explicitly set).- Returns:
- the home page URL path
-
hostName
String hostName()The hostname.- Returns:
- the hostname
-
instanceId
The instance id.- Returns:
- the instance id
-
ipAddr
String ipAddr()The IP address.- Returns:
- the IP address
-
jsonBuilderFactory
JsonBuilderFactory jsonBuilderFactory()- Returns:
- the
JsonBuilderFactory
-
leaseInfo
LeaseInfoConfig leaseInfo()TheLeaseInfoConfig
.- Returns:
- the
LeaseInfoConfig
- See Also:
-
metadata
Metadata.- Returns:
- the metadata
-
port
default int port()Port.- Returns:
- the port
-
portInfo
PortInfoConfig portInfo()(Non-secure) port information.- Returns:
PortInfoConfig
-
secureHealthCheckUrl
The secure health check URL.- Returns:
- the secure health check URL
-
securePort
default int securePort()Secure port.- Returns:
- the secure port
-
securePortInfo
PortInfoConfig securePortInfo()Secure port information.- Returns:
PortInfoConfig
-
statusPageUrl
The status page URL.- Returns:
- the status page URL
-
statusPageUrlPath
String statusPageUrlPath()The status page URL path (used if status page URL is not explicitly set).- Returns:
- the status page URL path
-
trafficEnabled
boolean trafficEnabled()Whether traffic is enabled on startup (normallytrue
).- Returns:
- whether traffic is enabled on startup
-
vipAddress
The VIP address.VIP stands for Virtual IP.
- Returns:
- the VIP address
-
secureVipAddress
The secure VIP address.VIP stands for Virtual IP.
- Returns:
- the secure VIP address
-