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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    EurekaRegistrationConfiguration(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

    Modifier and Type
    Method
    Description
     
    boolean
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PREFIX

      public static final String PREFIX
      Prefix for Eureka registration client.
      See Also:
    • IP_ADDRESS

      public static final String IP_ADDRESS
      Configuration property name for Eureka instance IP address.
      See Also:
    • PREFER_IP_ADDRESS

      public static final String PREFER_IP_ADDRESS
      Configuration property name for preferring Eureka instance IP address registration.
      See Also:
    • APPNAME

      public static final String APPNAME
      Configuration property name for Eureka instance app name (value: "eureka.client.registration.appname").
      See Also:
    • INSTANCE_ID

      public static final String INSTANCE_ID
      Configuration property name for Eureka instance id (value: "eureka.client.registration.instance-id").
      See Also:
    • HOSTNAME

      public static final String HOSTNAME
      Configuration property name for Eureka instance hostname (value: "eureka.client.registration.hostname").
      See Also:
    • PORT

      public static final String 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 server
      applicationConfiguration - The application configuration
      dataCenterInfo - The data center info
      appName - The application name
      hostname - The hostname
      port - The port
      ipAddr - The IP address
      instanceId - The instance ID
      preferIpAddress - Whether the IP address is prefered
  • Method Details

    • isExplicitInstanceId

      public boolean isExplicitInstanceId()
      Returns:
      Is an instance ID explicitly specified
    • getInstanceInfo

      public InstanceInfo getInstanceInfo()
      Returns:
      The instance info