Class EurekaClientConfigBean

java.lang.Object
org.springframework.cloud.netflix.eureka.EurekaClientConfigBean
All Implemented Interfaces:
com.netflix.discovery.EurekaClientConfig, org.springframework.core.Ordered

@ConfigurationProperties("eureka.client") public class EurekaClientConfigBean extends Object implements com.netflix.discovery.EurekaClientConfig, org.springframework.core.Ordered
Eureka client configuration bean.
Author:
Dave Syer, Gregor Zurowski
  • Field Details

  • Constructor Details

    • EurekaClientConfigBean

      public EurekaClientConfigBean()
  • Method Details

    • shouldGZipContent

      public boolean shouldGZipContent()
      Specified by:
      shouldGZipContent in interface com.netflix.discovery.EurekaClientConfig
    • shouldUseDnsForFetchingServiceUrls

      public boolean shouldUseDnsForFetchingServiceUrls()
      Specified by:
      shouldUseDnsForFetchingServiceUrls in interface com.netflix.discovery.EurekaClientConfig
    • shouldRegisterWithEureka

      public boolean shouldRegisterWithEureka()
      Specified by:
      shouldRegisterWithEureka in interface com.netflix.discovery.EurekaClientConfig
    • shouldPreferSameZoneEureka

      public boolean shouldPreferSameZoneEureka()
      Specified by:
      shouldPreferSameZoneEureka in interface com.netflix.discovery.EurekaClientConfig
    • shouldLogDeltaDiff

      public boolean shouldLogDeltaDiff()
      Specified by:
      shouldLogDeltaDiff in interface com.netflix.discovery.EurekaClientConfig
    • shouldDisableDelta

      public boolean shouldDisableDelta()
      Specified by:
      shouldDisableDelta in interface com.netflix.discovery.EurekaClientConfig
    • shouldUnregisterOnShutdown

      public boolean shouldUnregisterOnShutdown()
      Specified by:
      shouldUnregisterOnShutdown in interface com.netflix.discovery.EurekaClientConfig
    • shouldEnforceRegistrationAtInit

      public boolean shouldEnforceRegistrationAtInit()
      Specified by:
      shouldEnforceRegistrationAtInit in interface com.netflix.discovery.EurekaClientConfig
    • fetchRegistryForRemoteRegions

      public String fetchRegistryForRemoteRegions()
      Specified by:
      fetchRegistryForRemoteRegions in interface com.netflix.discovery.EurekaClientConfig
    • getAvailabilityZones

      public String[] getAvailabilityZones(String region)
      Specified by:
      getAvailabilityZones in interface com.netflix.discovery.EurekaClientConfig
    • getEurekaServerServiceUrls

      public List<String> getEurekaServerServiceUrls(String myZone)
      Specified by:
      getEurekaServerServiceUrls in interface com.netflix.discovery.EurekaClientConfig
    • shouldFilterOnlyUpInstances

      public boolean shouldFilterOnlyUpInstances()
      Specified by:
      shouldFilterOnlyUpInstances in interface com.netflix.discovery.EurekaClientConfig
    • shouldFetchRegistry

      public boolean shouldFetchRegistry()
      Specified by:
      shouldFetchRegistry in interface com.netflix.discovery.EurekaClientConfig
    • allowRedirects

      public boolean allowRedirects()
      Specified by:
      allowRedirects in interface com.netflix.discovery.EurekaClientConfig
    • shouldOnDemandUpdateStatusChange

      public boolean shouldOnDemandUpdateStatusChange()
      Specified by:
      shouldOnDemandUpdateStatusChange in interface com.netflix.discovery.EurekaClientConfig
    • getExperimental

      public String getExperimental(String name)
      Specified by:
      getExperimental in interface com.netflix.discovery.EurekaClientConfig
    • getTransportConfig

      public com.netflix.discovery.shared.transport.EurekaTransportConfig getTransportConfig()
      Specified by:
      getTransportConfig in interface com.netflix.discovery.EurekaClientConfig
    • getPropertyResolver

      public org.springframework.core.env.PropertyResolver getPropertyResolver()
    • setPropertyResolver

      public void setPropertyResolver(org.springframework.core.env.PropertyResolver propertyResolver)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getTransport

      public com.netflix.discovery.shared.transport.EurekaTransportConfig getTransport()
    • setTransport

      public void setTransport(com.netflix.discovery.shared.transport.EurekaTransportConfig transport)
    • getRegistryFetchIntervalSeconds

      public int getRegistryFetchIntervalSeconds()
      Specified by:
      getRegistryFetchIntervalSeconds in interface com.netflix.discovery.EurekaClientConfig
    • setRegistryFetchIntervalSeconds

      public void setRegistryFetchIntervalSeconds(int registryFetchIntervalSeconds)
    • getInstanceInfoReplicationIntervalSeconds

      public int getInstanceInfoReplicationIntervalSeconds()
      Specified by:
      getInstanceInfoReplicationIntervalSeconds in interface com.netflix.discovery.EurekaClientConfig
    • setInstanceInfoReplicationIntervalSeconds

      public void setInstanceInfoReplicationIntervalSeconds(int instanceInfoReplicationIntervalSeconds)
    • getInitialInstanceInfoReplicationIntervalSeconds

      public int getInitialInstanceInfoReplicationIntervalSeconds()
      Specified by:
      getInitialInstanceInfoReplicationIntervalSeconds in interface com.netflix.discovery.EurekaClientConfig
    • setInitialInstanceInfoReplicationIntervalSeconds

      public void setInitialInstanceInfoReplicationIntervalSeconds(int initialInstanceInfoReplicationIntervalSeconds)
    • getEurekaServiceUrlPollIntervalSeconds

      public int getEurekaServiceUrlPollIntervalSeconds()
      Specified by:
      getEurekaServiceUrlPollIntervalSeconds in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServiceUrlPollIntervalSeconds

      public void setEurekaServiceUrlPollIntervalSeconds(int eurekaServiceUrlPollIntervalSeconds)
    • getProxyPort

      public String getProxyPort()
      Specified by:
      getProxyPort in interface com.netflix.discovery.EurekaClientConfig
    • setProxyPort

      public void setProxyPort(String proxyPort)
    • getProxyHost

      public String getProxyHost()
      Specified by:
      getProxyHost in interface com.netflix.discovery.EurekaClientConfig
    • setProxyHost

      public void setProxyHost(String proxyHost)
    • getProxyUserName

      public String getProxyUserName()
      Specified by:
      getProxyUserName in interface com.netflix.discovery.EurekaClientConfig
    • setProxyUserName

      public void setProxyUserName(String proxyUserName)
    • getProxyPassword

      public String getProxyPassword()
      Specified by:
      getProxyPassword in interface com.netflix.discovery.EurekaClientConfig
    • setProxyPassword

      public void setProxyPassword(String proxyPassword)
    • getEurekaServerReadTimeoutSeconds

      public int getEurekaServerReadTimeoutSeconds()
      Specified by:
      getEurekaServerReadTimeoutSeconds in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServerReadTimeoutSeconds

      public void setEurekaServerReadTimeoutSeconds(int eurekaServerReadTimeoutSeconds)
    • getEurekaServerConnectTimeoutSeconds

      public int getEurekaServerConnectTimeoutSeconds()
      Specified by:
      getEurekaServerConnectTimeoutSeconds in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServerConnectTimeoutSeconds

      public void setEurekaServerConnectTimeoutSeconds(int eurekaServerConnectTimeoutSeconds)
    • getBackupRegistryImpl

      public String getBackupRegistryImpl()
      Specified by:
      getBackupRegistryImpl in interface com.netflix.discovery.EurekaClientConfig
    • setBackupRegistryImpl

      public void setBackupRegistryImpl(String backupRegistryImpl)
    • getEurekaServerTotalConnections

      public int getEurekaServerTotalConnections()
      Specified by:
      getEurekaServerTotalConnections in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServerTotalConnections

      public void setEurekaServerTotalConnections(int eurekaServerTotalConnections)
    • getEurekaServerTotalConnectionsPerHost

      public int getEurekaServerTotalConnectionsPerHost()
      Specified by:
      getEurekaServerTotalConnectionsPerHost in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServerTotalConnectionsPerHost

      public void setEurekaServerTotalConnectionsPerHost(int eurekaServerTotalConnectionsPerHost)
    • getEurekaServerURLContext

      public String getEurekaServerURLContext()
      Specified by:
      getEurekaServerURLContext in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServerURLContext

      public void setEurekaServerURLContext(String eurekaServerURLContext)
    • getEurekaServerPort

      public String getEurekaServerPort()
      Specified by:
      getEurekaServerPort in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServerPort

      public void setEurekaServerPort(String eurekaServerPort)
    • getEurekaServerDNSName

      public String getEurekaServerDNSName()
      Specified by:
      getEurekaServerDNSName in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaServerDNSName

      public void setEurekaServerDNSName(String eurekaServerDNSName)
    • getRegion

      public String getRegion()
      Specified by:
      getRegion in interface com.netflix.discovery.EurekaClientConfig
    • setRegion

      public void setRegion(String region)
    • getEurekaConnectionIdleTimeoutSeconds

      public int getEurekaConnectionIdleTimeoutSeconds()
      Specified by:
      getEurekaConnectionIdleTimeoutSeconds in interface com.netflix.discovery.EurekaClientConfig
    • setEurekaConnectionIdleTimeoutSeconds

      public void setEurekaConnectionIdleTimeoutSeconds(int eurekaConnectionIdleTimeoutSeconds)
    • getRegistryRefreshSingleVipAddress

      public String getRegistryRefreshSingleVipAddress()
      Specified by:
      getRegistryRefreshSingleVipAddress in interface com.netflix.discovery.EurekaClientConfig
    • setRegistryRefreshSingleVipAddress

      public void setRegistryRefreshSingleVipAddress(String registryRefreshSingleVipAddress)
    • getHeartbeatExecutorThreadPoolSize

      public int getHeartbeatExecutorThreadPoolSize()
      Specified by:
      getHeartbeatExecutorThreadPoolSize in interface com.netflix.discovery.EurekaClientConfig
    • setHeartbeatExecutorThreadPoolSize

      public void setHeartbeatExecutorThreadPoolSize(int heartbeatExecutorThreadPoolSize)
    • getHeartbeatExecutorExponentialBackOffBound

      public int getHeartbeatExecutorExponentialBackOffBound()
      Specified by:
      getHeartbeatExecutorExponentialBackOffBound in interface com.netflix.discovery.EurekaClientConfig
    • setHeartbeatExecutorExponentialBackOffBound

      public void setHeartbeatExecutorExponentialBackOffBound(int heartbeatExecutorExponentialBackOffBound)
    • getCacheRefreshExecutorThreadPoolSize

      public int getCacheRefreshExecutorThreadPoolSize()
      Specified by:
      getCacheRefreshExecutorThreadPoolSize in interface com.netflix.discovery.EurekaClientConfig
    • setCacheRefreshExecutorThreadPoolSize

      public void setCacheRefreshExecutorThreadPoolSize(int cacheRefreshExecutorThreadPoolSize)
    • getCacheRefreshExecutorExponentialBackOffBound

      public int getCacheRefreshExecutorExponentialBackOffBound()
      Specified by:
      getCacheRefreshExecutorExponentialBackOffBound in interface com.netflix.discovery.EurekaClientConfig
    • setCacheRefreshExecutorExponentialBackOffBound

      public void setCacheRefreshExecutorExponentialBackOffBound(int cacheRefreshExecutorExponentialBackOffBound)
    • getServiceUrl

      public Map<String,String> getServiceUrl()
    • setServiceUrl

      public void setServiceUrl(Map<String,String> serviceUrl)
    • isgZipContent

      public boolean isgZipContent()
    • setgZipContent

      public void setgZipContent(boolean gZipContent)
    • isUseDnsForFetchingServiceUrls

      public boolean isUseDnsForFetchingServiceUrls()
    • setUseDnsForFetchingServiceUrls

      public void setUseDnsForFetchingServiceUrls(boolean useDnsForFetchingServiceUrls)
    • isRegisterWithEureka

      public boolean isRegisterWithEureka()
    • setRegisterWithEureka

      public void setRegisterWithEureka(boolean registerWithEureka)
    • isPreferSameZoneEureka

      public boolean isPreferSameZoneEureka()
    • setPreferSameZoneEureka

      public void setPreferSameZoneEureka(boolean preferSameZoneEureka)
    • isLogDeltaDiff

      public boolean isLogDeltaDiff()
    • setLogDeltaDiff

      public void setLogDeltaDiff(boolean logDeltaDiff)
    • isDisableDelta

      public boolean isDisableDelta()
    • setDisableDelta

      public void setDisableDelta(boolean disableDelta)
    • getFetchRemoteRegionsRegistry

      public String getFetchRemoteRegionsRegistry()
    • setFetchRemoteRegionsRegistry

      public void setFetchRemoteRegionsRegistry(String fetchRemoteRegionsRegistry)
    • getAvailabilityZones

      public Map<String,String> getAvailabilityZones()
    • setAvailabilityZones

      public void setAvailabilityZones(Map<String,String> availabilityZones)
    • isFilterOnlyUpInstances

      public boolean isFilterOnlyUpInstances()
    • setFilterOnlyUpInstances

      public void setFilterOnlyUpInstances(boolean filterOnlyUpInstances)
    • isFetchRegistry

      public boolean isFetchRegistry()
    • setFetchRegistry

      public void setFetchRegistry(boolean fetchRegistry)
    • getDollarReplacement

      public String getDollarReplacement()
      Specified by:
      getDollarReplacement in interface com.netflix.discovery.EurekaClientConfig
    • setDollarReplacement

      public void setDollarReplacement(String dollarReplacement)
    • getEscapeCharReplacement

      public String getEscapeCharReplacement()
      Specified by:
      getEscapeCharReplacement in interface com.netflix.discovery.EurekaClientConfig
    • setEscapeCharReplacement

      public void setEscapeCharReplacement(String escapeCharReplacement)
    • isAllowRedirects

      public boolean isAllowRedirects()
    • setAllowRedirects

      public void setAllowRedirects(boolean allowRedirects)
    • isOnDemandUpdateStatusChange

      public boolean isOnDemandUpdateStatusChange()
    • setOnDemandUpdateStatusChange

      public void setOnDemandUpdateStatusChange(boolean onDemandUpdateStatusChange)
    • getEncoderName

      public String getEncoderName()
      Specified by:
      getEncoderName in interface com.netflix.discovery.EurekaClientConfig
    • setEncoderName

      public void setEncoderName(String encoderName)
    • getDecoderName

      public String getDecoderName()
      Specified by:
      getDecoderName in interface com.netflix.discovery.EurekaClientConfig
    • setDecoderName

      public void setDecoderName(String decoderName)
    • getClientDataAccept

      public String getClientDataAccept()
      Specified by:
      getClientDataAccept in interface com.netflix.discovery.EurekaClientConfig
    • setClientDataAccept

      public void setClientDataAccept(String clientDataAccept)
    • isShouldUnregisterOnShutdown

      public boolean isShouldUnregisterOnShutdown()
    • setShouldUnregisterOnShutdown

      public void setShouldUnregisterOnShutdown(boolean shouldUnregisterOnShutdown)
    • isShouldEnforceRegistrationAtInit

      public boolean isShouldEnforceRegistrationAtInit()
    • setShouldEnforceRegistrationAtInit

      public void setShouldEnforceRegistrationAtInit(boolean shouldEnforceRegistrationAtInit)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object