Package io.helidon.integrations.eureka
Class InstanceInfoConfig.BuilderBase<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InstanceInfoConfig>
java.lang.Object
io.helidon.integrations.eureka.InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
InstanceInfoConfig.Builder
- Enclosing interface:
InstanceInfoConfig
public abstract static class InstanceInfoConfig.BuilderBase<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InstanceInfoConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
InstanceInfoConfig
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMetadata
(Map<String, String> metadata) This method keeps existing values, then puts all new values into the map.The app group name.appGroupName
(String appGroupName) The app group name.appName()
The app name.The app name.asgName()
The ASG name.The ASG name.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).from
(InstanceInfoConfig prototype) Update this builder from an existing prototype instance.from
(InstanceInfoConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.The health check URL.healthCheckUrl
(URI healthCheckUrl) The health check URL.The health check URL path (used if any health check URL is not explicitly set).healthCheckUrlPath
(String healthCheckUrlPath) The health check URL path (used if any health check URL is not explicitly set).The home page URL.homePageUrl
(URI homePageUrl) The home page URL.The home page URL path (used if the homepage URL is not explicitly set).homePageUrlPath
(String homePageUrlPath) The home page URL path (used if the homepage URL is not explicitly set).hostName()
The hostname.The hostname.The instance id.instanceId
(String instanceId) The instance id.ipAddr()
The IP address.The IP address.jsonBuilderFactory
(JsonBuilderFactory jsonBuilderFactory) TheLeaseInfoConfig
.leaseInfo
(LeaseInfoConfig leaseInfo) TheLeaseInfoConfig
.leaseInfo
(Consumer<LeaseInfoConfig.Builder> consumer) TheLeaseInfoConfig
.leaseInfo
(Supplier<? extends LeaseInfoConfig> supplier) TheLeaseInfoConfig
.metadata()
Metadata.This method replaces all values with the new ones.portInfo()
(Non-secure) port information.portInfo
(PortInfoConfig portInfo) (Non-secure) port information.portInfo
(Consumer<PortInfoConfig.Builder> consumer) (Non-secure) port information.portInfo
(Supplier<? extends PortInfoConfig> supplier) (Non-secure) port information.protected void
Handles providers and decorators.The secure health check URL.secureHealthCheckUrl
(URI secureHealthCheckUrl) The secure health check URL.Secure port information.securePortInfo
(PortInfoConfig securePortInfo) Secure port information.securePortInfo
(Consumer<PortInfoConfig.Builder> consumer) Secure port information.securePortInfo
(Supplier<? extends PortInfoConfig> supplier) Secure port information.The secure VIP address.secureVipAddress
(String secureVipAddress) The secure VIP address.The status page URL.statusPageUrl
(URI statusPageUrl) The status page URL.The status page URL path (used if status page URL is not explicitly set).statusPageUrlPath
(String statusPageUrlPath) The status page URL path (used if status page URL is not explicitly set).toString()
boolean
Whether traffic is enabled on startup (normallytrue
).trafficEnabled
(boolean trafficEnabled) Whether traffic is enabled on startup (normallytrue
).protected void
Validates required properties.The VIP address.vipAddress
(String vipAddress) The VIP address.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends InstanceInfoConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
appName
The app name.- Parameters:
appName
- the app name- Returns:
- updated builder instance
- See Also:
-
appGroupName
The app group name.- Parameters:
appGroupName
- the app group name- Returns:
- updated builder instance
- See Also:
-
clearAsgName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
asgName
The ASG name.ASG stands for Auto Scaling Group.
- Parameters:
asgName
- the ASG name- Returns:
- updated builder instance
- See Also:
-
clearHealthCheckUrl
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
healthCheckUrl
The health check URL.- Parameters:
healthCheckUrl
- the health check URL- Returns:
- updated builder instance
- See Also:
-
healthCheckUrlPath
The health check URL path (used if any health check URL is not explicitly set).- Parameters:
healthCheckUrlPath
- the health check URL path- Returns:
- updated builder instance
- See Also:
-
clearHomePageUrl
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
homePageUrl
The home page URL.- Parameters:
homePageUrl
- the home page URL- Returns:
- updated builder instance
- See Also:
-
homePageUrlPath
The home page URL path (used if the homepage URL is not explicitly set).- Parameters:
homePageUrlPath
- the home page URL path- Returns:
- updated builder instance
- See Also:
-
hostName
The hostname.- Parameters:
hostName
- the hostname- Returns:
- updated builder instance
- See Also:
-
clearInstanceId
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
instanceId
The instance id.- Parameters:
instanceId
- the instance id- Returns:
- updated builder instance
- See Also:
-
ipAddr
The IP address.- Parameters:
ipAddr
- the IP address- Returns:
- updated builder instance
- See Also:
-
jsonBuilderFactory
- Parameters:
jsonBuilderFactory
- theJsonBuilderFactory
- Returns:
- updated builder instance
- See Also:
-
leaseInfo
TheLeaseInfoConfig
.- Parameters:
leaseInfo
- theLeaseInfoConfig
- Returns:
- updated builder instance
- See Also:
-
leaseInfo
TheLeaseInfoConfig
.- Parameters:
consumer
- consumer of builder for theLeaseInfoConfig
- Returns:
- updated builder instance
- See Also:
-
leaseInfo
TheLeaseInfoConfig
.- Parameters:
supplier
- supplier of theLeaseInfoConfig
- Returns:
- updated builder instance
- See Also:
-
metadata
This method replaces all values with the new ones.- Parameters:
metadata
- the metadata- Returns:
- updated builder instance
- See Also:
-
addMetadata
This method keeps existing values, then puts all new values into the map.- Parameters:
metadata
- the metadata- Returns:
- updated builder instance
- See Also:
-
portInfo
(Non-secure) port information.- Parameters:
portInfo
-PortInfoConfig
- Returns:
- updated builder instance
- See Also:
-
portInfo
(Non-secure) port information.- Parameters:
consumer
- consumer of builder forPortInfoConfig
- Returns:
- updated builder instance
- See Also:
-
portInfo
(Non-secure) port information.- Parameters:
supplier
- supplier ofPortInfoConfig
- Returns:
- updated builder instance
- See Also:
-
clearSecureHealthCheckUrl
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
secureHealthCheckUrl
The secure health check URL.- Parameters:
secureHealthCheckUrl
- the secure health check URL- Returns:
- updated builder instance
- See Also:
-
securePortInfo
Secure port information.- Parameters:
securePortInfo
-PortInfoConfig
- Returns:
- updated builder instance
- See Also:
-
securePortInfo
Secure port information.- Parameters:
consumer
- consumer of builder forPortInfoConfig
- Returns:
- updated builder instance
- See Also:
-
securePortInfo
Secure port information.- Parameters:
supplier
- supplier ofPortInfoConfig
- Returns:
- updated builder instance
- See Also:
-
clearStatusPageUrl
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
statusPageUrl
The status page URL.- Parameters:
statusPageUrl
- the status page URL- Returns:
- updated builder instance
- See Also:
-
statusPageUrlPath
The status page URL path (used if status page URL is not explicitly set).- Parameters:
statusPageUrlPath
- the status page URL path- Returns:
- updated builder instance
- See Also:
-
trafficEnabled
Whether traffic is enabled on startup (normallytrue
).- Parameters:
trafficEnabled
- whether traffic is enabled on startup- Returns:
- updated builder instance
- See Also:
-
clearVipAddress
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
vipAddress
The VIP address.VIP stands for Virtual IP.
- Parameters:
vipAddress
- the VIP address- Returns:
- updated builder instance
- See Also:
-
clearSecureVipAddress
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
secureVipAddress
The secure VIP address.VIP stands for Virtual IP.
- Parameters:
secureVipAddress
- the secure VIP address- Returns:
- updated builder instance
- See Also:
-
appName
The app name.- Returns:
- the app name
-
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
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
The home page URL path (used if the homepage URL is not explicitly set).- Returns:
- the home page url path
-
hostName
The hostname.- Returns:
- the host name
-
instanceId
The instance id.- Returns:
- the instance id
-
ipAddr
The IP address.- Returns:
- the ip addr
-
jsonBuilderFactory
- Returns:
- the json builder factory
-
leaseInfo
TheLeaseInfoConfig
.- Returns:
- the lease info
- See Also:
-
metadata
Metadata.- Returns:
- the metadata
-
portInfo
(Non-secure) port information.- Returns:
- the port info
-
secureHealthCheckUrl
The secure health check URL.- Returns:
- the secure health check url
-
securePortInfo
Secure port information.- Returns:
- the secure port info
-
statusPageUrl
The status page URL.- Returns:
- the status page url
-
statusPageUrlPath
The status page URL path (used if status page URL is not explicitly set).- Returns:
- the status page url path
-
trafficEnabled
public boolean trafficEnabled()Whether traffic is enabled on startup (normallytrue
).- Returns:
- the traffic enabled
-
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
-
config
If this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-