Package io.micronaut.discovery.eureka
Class EurekaConfiguration.EurekaRegistrationConfiguration
java.lang.Object
io.micronaut.discovery.registration.RegistrationConfiguration
io.micronaut.discovery.eureka.EurekaConfiguration.EurekaRegistrationConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Enclosing class:
- EurekaConfiguration
@ConfigurationProperties("registration")
@Requires(property="micronaut.application.name") @Requires(property="eureka.client")
public static class EurekaConfiguration.EurekaRegistrationConfiguration
extends io.micronaut.discovery.registration.RegistrationConfiguration
Configuration properties for Eureka client registration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Configuration property name for Eureka instance app name (value: "eureka.client.registration.appname").static final String
Configuration property name for Eureka instance hostname (value: "eureka.client.registration.hostname").static final String
Configuration property name for Eureka instance id (value: "eureka.client.registration.instance-id").static final String
Configuration property name for Eureka instance IP address.static final String
Configuration property name for Eureka instance port (value: "eureka.client.registration.port").static final String
Configuration property name for preferring Eureka instance IP address registration.static final String
Prefix for Eureka registration client.Fields inherited from class io.micronaut.discovery.registration.RegistrationConfiguration
DEFAULT_DEREGISTER, DEFAULT_ENABLED, DEFAULT_FAILFAST, DEFAULT_RETRY_COUNT, DEFAULT_RETRYDELAY_SECONDS
-
Constructor Summary
ConstructorDescriptionEurekaRegistrationConfiguration
(io.micronaut.runtime.server.EmbeddedServer embeddedServer, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Nullable DataCenterInfo dataCenterInfo, @Nullable String appName, @Nullable String hostname, @Nullable Integer port, @Nullable String ipAddr, @Nullable String instanceId, @Nullable Boolean preferIpAddress) -
Method Summary
Methods inherited from class io.micronaut.discovery.registration.RegistrationConfiguration
getHealthPath, getIpAddr, getRetryCount, getRetryDelay, getTimeout, isDeregister, isEnabled, isFailFast, isPreferIpAddress, setDeregister, setEnabled, setFailFast, setHealthPath, setIpAddr, setPreferIpAddress, setRetryCount, setRetryDelay, setTimeout
-
Field Details
-
PREFIX
Prefix for Eureka registration client.- See Also:
-
IP_ADDRESS
Configuration property name for Eureka instance IP address.- See Also:
-
PREFER_IP_ADDRESS
Configuration property name for preferring Eureka instance IP address registration.- See Also:
-
APPNAME
Configuration property name for Eureka instance app name (value: "eureka.client.registration.appname").- See Also:
-
INSTANCE_ID
Configuration property name for Eureka instance id (value: "eureka.client.registration.instance-id").- See Also:
-
HOSTNAME
Configuration property name for Eureka instance hostname (value: "eureka.client.registration.hostname").- See Also:
-
PORT
Configuration property name for Eureka instance port (value: "eureka.client.registration.port").- See Also:
-
-
Constructor Details
-
EurekaRegistrationConfiguration
@Inject public EurekaRegistrationConfiguration(io.micronaut.runtime.server.EmbeddedServer embeddedServer, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Nullable @Nullable DataCenterInfo dataCenterInfo, @Property(name="eureka.client.registration.appname") @Nullable @Nullable String appName, @Property(name="eureka.client.registration.hostname") @Nullable @Nullable String hostname, @Property(name="eureka.client.registration.port") @Nullable @Nullable Integer port, @Property(name="eureka.client.registration.ip-addr") @Nullable @Nullable String ipAddr, @Property(name="eureka.client.registration.instance-id") @Nullable @Nullable String instanceId, @Property(name="eureka.client.registration.prefer-ip-address") @Nullable @Nullable Boolean preferIpAddress) - Parameters:
embeddedServer
- The embedded serverapplicationConfiguration
- The application configurationdataCenterInfo
- The data center infoappName
- The application namehostname
- The hostnameport
- The portipAddr
- The IP addressinstanceId
- The instance IDpreferIpAddress
- Whether the IP address is prefered
-
-
Method Details
-
isExplicitInstanceId
public boolean isExplicitInstanceId()- Returns:
- Is an instance ID explicitly specified
-
getInstanceInfo
- Returns:
- The instance info
-