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> 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 classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMetadata(Map<String, String> metadata) Metadata.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 asgName.Clear existing value of healthCheckUrl.Clear existing value of homePageUrl.Clear existing value of instanceId.Clear existing value of secureHealthCheckUrl.Clear existing value of secureVipAddress.Clear existing value of statusPageUrl.Clear existing value of vipAddress.config()Configuration used to configure this instance.Deprecated.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.Metadata.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 voidHandles 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()booleanWhether traffic is enabled on startup (normallytrue).trafficEnabled(boolean trafficEnabled) Whether traffic is enabled on startup (normallytrue).protected voidValidates 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, waitMethods 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
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin 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
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin 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 asgName.- 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 healthCheckUrl.- 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 homePageUrl.- 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 instanceId.- 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 of theLeaseInfoConfig- Returns:
- updated builder instance
- See Also:
-
leaseInfo
TheLeaseInfoConfig.- Parameters:
supplier- supplier of theLeaseInfoConfig- Returns:
- updated builder instance
- See Also:
-
metadata
Metadata. This method replaces all values with the new ones.- Parameters:
metadata- the metadata- Returns:
- updated builder instance
- See Also:
-
addMetadata
Metadata. 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 ofPortInfoConfig- 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 secureHealthCheckUrl.- 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 ofPortInfoConfig- 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 statusPageUrl.- 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 vipAddress.- 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 secureVipAddress.- 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 hostname
-
instanceId
The instance id.- Returns:
- the instance id
-
ipAddr
The IP address.- Returns:
- the IP address
-
jsonBuilderFactory
- Returns:
- the
JsonBuilderFactory
-
leaseInfo
TheLeaseInfoConfig.- Returns:
- the
LeaseInfoConfig - See Also:
-
metadata
Metadata.- Returns:
- the metadata
-
portInfo
(Non-secure) port information.- Returns:
PortInfoConfig
-
secureHealthCheckUrl
The secure health check URL.- Returns:
- the secure health check URL
-
securePortInfo
Secure port information.- Returns:
PortInfoConfig
-
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:
- 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
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)