|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.eureka.DefaultEurekaServerConfig
public class DefaultEurekaServerConfig
A default implementation of eureka server configuration as required by
EurekaServerConfig.
The information required for configuring eureka server is provided in a configuration file.The configuration file is searched for in the classpath with the name specified by the property eureka.server.props and with the suffix .properties. If the property is not specified, eureka-server.properties is assumed as the default.The properties that are looked up uses the namespace passed on to this class.
If the eureka.environment property is specified, additionally
eureka-server-
| Constructor Summary | |
|---|---|
DefaultEurekaServerConfig()
|
|
DefaultEurekaServerConfig(java.lang.String namespace)
|
|
| Method Summary | |
|---|---|
int |
getASGQueryTimeoutMs()
Get the timeout value for querying the AWS for ASG information. |
long |
getASGUpdateIntervalMs()
Get the time interval with which the ASG information must be queried from AWS |
java.lang.String |
getAWSAccessId()
Gets the AWS Access Id. |
java.lang.String |
getAWSSecretKey()
Gets the AWS Secret Key. |
long |
getDeltaRetentionTimerIntervalInMs()
Get the time interval with which the clean up task should wake up and check for expired delta information. |
int |
getEIPBindingRetryIntervalMs()
Gets the interval with which the server should check if the EIP is bound and should try to bind in the case if it is already not bound. |
int |
getEIPBindRebindRetries()
Gets the number of times the server should try to bind to the candidate EIP. |
long |
getEvictionIntervalTimerInMs()
Get the time interval with which the task that expires instances should wake up and run. |
int |
getMaxElementsInPeerReplicationPool()
Get the maximum number of replication events that can be allowed to back up in the replication pool. |
int |
getMaxElementsInStatusReplicationPool()
Get the maximum number of replication events that can be allowed to back up in the status replication pool. |
long |
getMaxIdleThreadAgeInMinutesForPeerReplication()
Get the idle time for which the replication threads can stay alive. |
long |
getMaxIdleThreadInMinutesAgeForStatusReplication()
Get the idle time for which the status replication threads can stay alive. |
int |
getMaxThreadsForPeerReplication()
Get the maximum number of threads to be used for replication. |
int |
getMaxThreadsForStatusReplication()
Get the maximum number of threads to be used for status replication. |
int |
getMaxTimeForReplication()
Get the time in milliseconds to try to replicate before dropping replication events. |
int |
getMinThreadsForPeerReplication()
Get the minimum number of threads to be used for replication. |
int |
getMinThreadsForStatusReplication()
Get the minimum number of threads to be used for status replication. |
int |
getNumberOfReplicationRetries()
Get the number of times the replication events should be retried with peers. |
int |
getPeerEurekaNodesUpdateIntervalMs()
The interval with which the information about the changes in peer eureka nodes is updated. |
int |
getPeerEurekaStatusRefreshTimeIntervalMs()
Gets the interval with which the status information about peer nodes is updated. |
int |
getPeerNodeConnectionIdleTimeoutSeconds()
Gets the idle time after which the HTTP connection should be cleaned up. |
int |
getPeerNodeConnectTimeoutMs()
Gets the timeout value for connecting to peer eureka nodes for replication. |
int |
getPeerNodeReadTimeoutMs()
Gets the timeout value for reading information from peer eureka nodes for replication. |
int |
getPeerNodeTotalConnections()
Gets the total number of HTTP connections allowed to peer eureka nodes for replication. |
int |
getPeerNodeTotalConnectionsPerHost()
Gets the total number of HTTP connections allowed to a particular peer eureka node for replication. |
int |
getRegistrySyncRetries()
Get the number of times that a eureka node would try to get the registry information from the peers during startup. |
int |
getRemoteRegionConnectionIdleTimeoutSeconds()
Gets the idle time after which the HTTP connection should be cleaned up for remote regions. |
int |
getRemoteRegionConnectTimeoutMs()
Gets the timeout value for connecting to peer eureka nodes for remote regions. |
int |
getRemoteRegionReadTimeoutMs()
Gets the timeout value for reading information from peer eureka nodes for remote regions. |
int |
getRemoteRegionRegistryFetchInterval()
Get the time interval for which the registryinformation need to be fetched from the remote region. |
int |
getRemoteRegionTotalConnections()
Gets the total number of HTTP connections allowed to peer eureka nodes for remote regions. |
int |
getRemoteRegionTotalConnectionsPerHost()
Gets the total number of HTTP connections allowed to a particular peer eureka node for remote regions. |
java.lang.String[] |
getRemoteRegionUrls()
Get the list of remote region urls |
double |
getRenewalPercentThreshold()
The minimum percentage of renewals that is expected from the clients in the period specified by EurekaServerConfig.getRenewalThresholdUpdateIntervalMs(). |
int |
getRenewalThresholdUpdateIntervalMs()
The interval with which the threshold as specified in EurekaServerConfig.getRenewalPercentThreshold() needs to be updated. |
long |
getResponseCacheAutoExpirationInSeconds()
Gets the time for which the registry payload should be kept in the cache if it is not invalidated by change events. |
long |
getResponseCacheUpdateIntervalMs()
Gets the time interval with which the payload cache of the client should be updated. |
long |
getRetentionTimeInMSInDeltaQueue()
Get the time for which the delta information should be cached for the clients to retrieve the value without missing it. |
int |
getWaitTimeInMsWhenSyncEmpty()
Gets the time to wait when the eureka server starts up unable to get instances from peer nodes. |
boolean |
shouldDisableDelta()
Checks to see if the delta information can be served to client or not. |
boolean |
shouldDisableDeltaForRemoteRegions()
Checks to see if the delta information can be served to client or not for remote regions. |
boolean |
shouldEnableSelfPreservation()
Checks to see if the eureka server is enabled for self preservation. |
boolean |
shouldGZipContentFromRemoteRegion()
Indicates whether the content fetched from eureka server has to be compressed for remote regions whenever it is supported by the server. |
boolean |
shouldPrimeAwsReplicaConnections()
Checks whether the connections to replicas should be primed. |
boolean |
shouldSyncWhenTimestampDiffers()
Checks whether to synchronize instances when timestamp differs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEurekaServerConfig()
public DefaultEurekaServerConfig(java.lang.String namespace)
| Method Detail |
|---|
public java.lang.String getAWSAccessId()
EurekaServerConfig
getAWSAccessId in interface EurekaServerConfigpublic java.lang.String getAWSSecretKey()
EurekaServerConfig
getAWSSecretKey in interface EurekaServerConfigpublic int getEIPBindRebindRetries()
EurekaServerConfigThe changes are effective at runtime.
getEIPBindRebindRetries in interface EurekaServerConfigpublic int getEIPBindingRetryIntervalMs()
EurekaServerConfigThe changes are effective at runtime.
getEIPBindingRetryIntervalMs in interface EurekaServerConfigpublic boolean shouldEnableSelfPreservation()
EurekaServerConfig
When enabled, the server keeps track of the number of renewals
it should receive from the server. Any time, the number of renewals drops
below the threshold percentage as defined by
EurekaServerConfig.getRenewalPercentThreshold(), the server turns off expirations
to avert danger.This will help the server in maintaining the registry
information in case of network problems between client and the server.
The changes are effective at runtime.
shouldEnableSelfPreservation in interface EurekaServerConfigpublic int getPeerEurekaNodesUpdateIntervalMs()
EurekaServerConfighttps://github.com/Netflix/archaius to
change the information dynamically.
The changes are effective at runtime.
getPeerEurekaNodesUpdateIntervalMs in interface EurekaServerConfigpublic int getRenewalThresholdUpdateIntervalMs()
EurekaServerConfigEurekaServerConfig.getRenewalPercentThreshold() needs to be updated.
getRenewalThresholdUpdateIntervalMs in interface EurekaServerConfigpublic double getRenewalPercentThreshold()
EurekaServerConfigEurekaServerConfig.getRenewalThresholdUpdateIntervalMs().
If the renewals drop below the threshold, the expirations are disabled if
the EurekaServerConfig.shouldEnableSelfPreservation() is enabled.
The changes are effective at runtime.
getRenewalPercentThreshold in interface EurekaServerConfig85% will be specified as 0.85.public int getNumberOfReplicationRetries()
EurekaServerConfigThe changes are effective at runtime.
getNumberOfReplicationRetries in interface EurekaServerConfigpublic int getPeerEurekaStatusRefreshTimeIntervalMs()
EurekaServerConfigThe changes are effective at runtime.
getPeerEurekaStatusRefreshTimeIntervalMs in interface EurekaServerConfigpublic int getWaitTimeInMsWhenSyncEmpty()
EurekaServerConfig
getWaitTimeInMsWhenSyncEmpty in interface EurekaServerConfigpublic int getPeerNodeConnectTimeoutMs()
EurekaServerConfig
getPeerNodeConnectTimeoutMs in interface EurekaServerConfigpublic int getPeerNodeReadTimeoutMs()
EurekaServerConfig
getPeerNodeReadTimeoutMs in interface EurekaServerConfigpublic int getPeerNodeTotalConnections()
EurekaServerConfig
getPeerNodeTotalConnections in interface EurekaServerConfigpublic int getPeerNodeTotalConnectionsPerHost()
EurekaServerConfig
getPeerNodeTotalConnectionsPerHost in interface EurekaServerConfigpublic int getPeerNodeConnectionIdleTimeoutSeconds()
EurekaServerConfig
getPeerNodeConnectionIdleTimeoutSeconds in interface EurekaServerConfigpublic long getRetentionTimeInMSInDeltaQueue()
EurekaServerConfig
getRetentionTimeInMSInDeltaQueue in interface EurekaServerConfigpublic long getDeltaRetentionTimerIntervalInMs()
EurekaServerConfig
getDeltaRetentionTimerIntervalInMs in interface EurekaServerConfigpublic long getEvictionIntervalTimerInMs()
EurekaServerConfig
getEvictionIntervalTimerInMs in interface EurekaServerConfigpublic int getASGQueryTimeoutMs()
EurekaServerConfig
getASGQueryTimeoutMs in interface EurekaServerConfigpublic long getASGUpdateIntervalMs()
EurekaServerConfig
getASGUpdateIntervalMs in interface EurekaServerConfigpublic long getResponseCacheAutoExpirationInSeconds()
EurekaServerConfig
getResponseCacheAutoExpirationInSeconds in interface EurekaServerConfigpublic long getResponseCacheUpdateIntervalMs()
EurekaServerConfig
getResponseCacheUpdateIntervalMs in interface EurekaServerConfigpublic boolean shouldDisableDelta()
EurekaServerConfigThe changes are effective at runtime.
shouldDisableDelta in interface EurekaServerConfigpublic long getMaxIdleThreadInMinutesAgeForStatusReplication()
EurekaServerConfig
getMaxIdleThreadInMinutesAgeForStatusReplication in interface EurekaServerConfigpublic int getMinThreadsForStatusReplication()
EurekaServerConfig
getMinThreadsForStatusReplication in interface EurekaServerConfigpublic int getMaxThreadsForStatusReplication()
EurekaServerConfig
getMaxThreadsForStatusReplication in interface EurekaServerConfigpublic int getMaxElementsInStatusReplicationPool()
EurekaServerConfigDepending on the memory allowed, timeout and the replication traffic, this value can vary.
getMaxElementsInStatusReplicationPool in interface EurekaServerConfigpublic boolean shouldSyncWhenTimestampDiffers()
EurekaServerConfigThe changes are effective at runtime.
shouldSyncWhenTimestampDiffers in interface EurekaServerConfigpublic int getRegistrySyncRetries()
EurekaServerConfig
getRegistrySyncRetries in interface EurekaServerConfigpublic int getMaxElementsInPeerReplicationPool()
EurekaServerConfigDepending on the memory allowed, timeout and the replication traffic, this value can vary.
getMaxElementsInPeerReplicationPool in interface EurekaServerConfigpublic long getMaxIdleThreadAgeInMinutesForPeerReplication()
EurekaServerConfig
getMaxIdleThreadAgeInMinutesForPeerReplication in interface EurekaServerConfigpublic int getMinThreadsForPeerReplication()
EurekaServerConfig
getMinThreadsForPeerReplication in interface EurekaServerConfigpublic int getMaxThreadsForPeerReplication()
EurekaServerConfig
getMaxThreadsForPeerReplication in interface EurekaServerConfigpublic int getMaxTimeForReplication()
EurekaServerConfig
getMaxTimeForReplication in interface EurekaServerConfigpublic boolean shouldPrimeAwsReplicaConnections()
EurekaServerConfig
shouldPrimeAwsReplicaConnections in interface EurekaServerConfigpublic boolean shouldDisableDeltaForRemoteRegions()
EurekaServerConfigThe changes are effective at runtime.
shouldDisableDeltaForRemoteRegions in interface EurekaServerConfigpublic int getRemoteRegionConnectTimeoutMs()
EurekaServerConfig
getRemoteRegionConnectTimeoutMs in interface EurekaServerConfigpublic int getRemoteRegionReadTimeoutMs()
EurekaServerConfig
getRemoteRegionReadTimeoutMs in interface EurekaServerConfigpublic int getRemoteRegionTotalConnections()
EurekaServerConfig
getRemoteRegionTotalConnections in interface EurekaServerConfigpublic int getRemoteRegionTotalConnectionsPerHost()
EurekaServerConfig
getRemoteRegionTotalConnectionsPerHost in interface EurekaServerConfigpublic int getRemoteRegionConnectionIdleTimeoutSeconds()
EurekaServerConfig
getRemoteRegionConnectionIdleTimeoutSeconds in interface EurekaServerConfigpublic boolean shouldGZipContentFromRemoteRegion()
EurekaServerConfig
shouldGZipContentFromRemoteRegion in interface EurekaServerConfigpublic java.lang.String[] getRemoteRegionUrls()
EurekaServerConfig
getRemoteRegionUrls in interface EurekaServerConfigURLs.public int getRemoteRegionRegistryFetchInterval()
EurekaServerConfig
getRemoteRegionRegistryFetchInterval in interface EurekaServerConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||