public class Config extends Object implements BaseConfig, DiscoveryLiteConfig
The properties are described below under.
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_SYNC_SERVICE_INTERVAL_KEY |
static String |
CLUSTER_SYNC_SERVICE_TIMEOUT_KEY |
static long |
DEFAULT_CLUSTER_SYNC_SERVICE_INTERVAL |
static long |
DEFAULT_CLUSTER_SYNC_SERVICE_TIMEOUT |
static long |
DEFAULT_DISCOVERY_LITE_CHECK_INTERVAL
Configure the interval (in seconds) according to which the heartbeats are exchanged in the topology.
|
static int |
DEFAULT_MIN_EVENT_DELAY
Configure the time (in seconds) which must be passed at minimum between sending TOPOLOGY_CHANGING/_CHANGED (avoid flooding).
|
static int |
DEFAULT_SO_TIMEOUT
Configure the socket read timeout (SO_TIMEOUT) for topology connectors.
|
static int |
DEFAULT_SOCKET_CONNECT_TIMEOUT
Configure the socket connect timeout for topology connectors.
|
static long |
DEFAULT_TOPOLOGY_CONNECTOR_INTERVAL
Configure the interval (in seconds) according to which the heartbeats are exchanged in the topology.
|
static long |
DEFAULT_TOPOLOGY_CONNECTOR_TIMEOUT
Configure the timeout (in seconds) after which an instance is considered dead/crashed.
|
static String |
DISCOVERY_LITE_CHECK_INTERVAL_KEY |
static String |
DISCOVERY_RESOURCE_PATH_KEY |
static String |
MIN_EVENT_DELAY_KEY |
static String |
SO_TIMEOUT_KEY |
static String |
SOCKET_CONNECT_TIMEOUT_KEY |
static String |
TOPOLOGY_CONNECTOR_INTERVAL_KEY |
static String |
TOPOLOGY_CONNECTOR_TIMEOUT_KEY |
static String |
TOPOLOGY_CONNECTOR_URLS_KEY
URLs where to join a topology, eg http://localhost:4502/libs/sling/topology/connector
|
static String |
TOPOLOGY_CONNECTOR_WHITELIST_KEY |
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBackoffStableFactor()
Returns the (maximum) backoff factor to be used for stable connectors
|
int |
getBackoffStandbyFactor()
Returns the backoff factor to be used for standby (loop) connectors
|
long |
getBackoffStandbyInterval()
Returns the backoff interval for standby (loop) connectors in seconds
|
String |
getClusterInstancesPath()
Returns the resource path where cluster instance informations are stored.
|
long |
getClusterSyncServiceIntervalMillis()
Returns the interval (in milliseconds) to be used when waiting for the sync tokens or id mapping
|
long |
getClusterSyncServiceTimeoutMillis()
Returns the timeout (in milliseconds) to be used when waiting for the sync tokens or id mapping
|
long |
getConnectorPingInterval()
Returns the interval (in seconds) in which connectors are pinged
|
long |
getConnectorPingTimeout()
Returns the timeout (in seconds) after which a connector ping is considered invalid/timed out
|
long |
getDiscoveryLiteCheckInterval() |
String |
getIdMapPath()
Returns the configured path to store the idMap to
|
long |
getKeyInterval() |
int |
getMinEventDelay()
Returns the minimum time (in seconds) between sending TOPOLOGY_CHANGING/_CHANGED events - to avoid flooding
|
String |
getSharedKey() |
int |
getSocketConnectTimeout()
Returns the socket connect() timeout used by the topology connector, 0 disables the timeout
|
int |
getSoTimeout()
Returns the socket read timeout (SO_TIMEOUT) used by the topology connector, 0 disables the timeout
|
boolean |
getSyncTokenEnabled() |
String |
getSyncTokenPath()
Returns the configured path to store the syncTokens to
|
URL[] |
getTopologyConnectorURLs()
Returns the URLs to which to open a topology connector - or null/empty if no topology connector
is configured (default is null)
|
String[] |
getTopologyConnectorWhitelist()
Returns a comma separated list of hostnames and/or ip addresses which are allowed as
remote hosts to open connections to the topology connector servlet
|
boolean |
isAutoStopLocalLoopEnabled() |
boolean |
isEncryptionEnabled() |
boolean |
isGzipConnectorRequestsEnabled() |
boolean |
isHmacEnabled() |
public static final long DEFAULT_TOPOLOGY_CONNECTOR_TIMEOUT
public static final String TOPOLOGY_CONNECTOR_TIMEOUT_KEY
public static final long DEFAULT_TOPOLOGY_CONNECTOR_INTERVAL
public static final String TOPOLOGY_CONNECTOR_INTERVAL_KEY
public static final long DEFAULT_DISCOVERY_LITE_CHECK_INTERVAL
public static final String DISCOVERY_LITE_CHECK_INTERVAL_KEY
public static final long DEFAULT_CLUSTER_SYNC_SERVICE_TIMEOUT
public static final String CLUSTER_SYNC_SERVICE_TIMEOUT_KEY
public static final long DEFAULT_CLUSTER_SYNC_SERVICE_INTERVAL
public static final String CLUSTER_SYNC_SERVICE_INTERVAL_KEY
public static final int DEFAULT_MIN_EVENT_DELAY
public static final String MIN_EVENT_DELAY_KEY
public static final int DEFAULT_SOCKET_CONNECT_TIMEOUT
public static final String SOCKET_CONNECT_TIMEOUT_KEY
public static final int DEFAULT_SO_TIMEOUT
public static final String SO_TIMEOUT_KEY
public static final String TOPOLOGY_CONNECTOR_URLS_KEY
public static final String TOPOLOGY_CONNECTOR_WHITELIST_KEY
public static final String DISCOVERY_RESOURCE_PATH_KEY
public int getSocketConnectTimeout()
getSocketConnectTimeout in interface BaseConfigpublic int getSoTimeout()
getSoTimeout in interface BaseConfigpublic int getMinEventDelay()
getMinEventDelay in interface BaseConfigpublic URL[] getTopologyConnectorURLs()
getTopologyConnectorURLs in interface BaseConfigpublic String[] getTopologyConnectorWhitelist()
getTopologyConnectorWhitelist in interface BaseConfigpublic String getClusterInstancesPath()
getClusterInstancesPath in interface BaseConfigpublic String getSyncTokenPath()
DiscoveryLiteConfiggetSyncTokenPath in interface DiscoveryLiteConfigpublic String getIdMapPath()
DiscoveryLiteConfiggetIdMapPath in interface DiscoveryLiteConfigpublic boolean isHmacEnabled()
isHmacEnabled in interface BaseConfigpublic String getSharedKey()
getSharedKey in interface BaseConfigpublic long getKeyInterval()
getKeyInterval in interface BaseConfigpublic boolean isEncryptionEnabled()
isEncryptionEnabled in interface BaseConfigpublic boolean isGzipConnectorRequestsEnabled()
isGzipConnectorRequestsEnabled in interface BaseConfigpublic boolean isAutoStopLocalLoopEnabled()
isAutoStopLocalLoopEnabled in interface BaseConfigpublic int getBackoffStandbyFactor()
getBackoffStandbyFactor in interface BaseConfigpublic int getBackoffStableFactor()
getBackoffStableFactor in interface BaseConfigpublic long getBackoffStandbyInterval()
getBackoffStandbyInterval in interface BaseConfigpublic long getConnectorPingInterval()
BaseConfiggetConnectorPingInterval in interface BaseConfigpublic long getConnectorPingTimeout()
BaseConfiggetConnectorPingTimeout in interface BaseConfigpublic long getDiscoveryLiteCheckInterval()
public long getClusterSyncServiceTimeoutMillis()
DiscoveryLiteConfiggetClusterSyncServiceTimeoutMillis in interface DiscoveryLiteConfigpublic long getClusterSyncServiceIntervalMillis()
DiscoveryLiteConfiggetClusterSyncServiceIntervalMillis in interface DiscoveryLiteConfigpublic boolean getSyncTokenEnabled()
"Copyright © 2010 - 2016 Adobe Systems Incorporated. All Rights Reserved"