Package org.apache.sling.discovery.oak
Annotation Type DiscoveryServiceCentralConfig
public @interface DiscoveryServiceCentralConfig
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
If set to true, local-loops of topology connectors are automatically stopped when detected so.int
The property for defining the maximum backoff factor for stable connectorsint
The property for defining the backoff factor for standby (loop) connectorslong
long
long
Configure the interval (in seconds) according to which the heartbeats are exchanged in the topology.long
Configure the timeout (in seconds) after which an instance is considered dead/crashed.long
Path of resource where to keep discovery information, e.g /var/discovery/oak/boolean
If set to true, and the whitelist is disabled, messages will be encrypted.boolean
If set to true a syncToken will be used on top of waiting for deactivating instances to be fully processed.boolean
If set to true, request body will be gzipped - only works if counter-part accepts gzip-requests!boolean
If set to true, hmac is enabled and the white list is disabled.long
boolean
long
long
int
Configure the time (in seconds) which must be passed at minimum between sending TOPOLOGY_CHANGING/_CHANGED (avoid flooding).The value fo the shared key, shared amongst all instances in the same cluster.int
Configure the socket connect timeout for topology connectors.int
Configure the socket read timeout (SO_TIMEOUT) for topology connectors.long
boolean
String[]
URLs where to join a topology, eg http://localhost:4502/libs/sling/topology/connectorString[]
list of ips and/or hostnames which are allowed to connect to /libs/sling/topology/connector -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final long
static final long
static final long
static final String
static final boolean
static final long
static final long
static final int
static final long
The default lifetime of a HMAC shared key in ms. (4h)static final int
static final int
static final boolean
static final long
static final long
static final long
static final String[]
static final String
-
Field Details
-
DEFAULT_TOPOLOGY_CONNECTOR_TIMEOUT
static final long DEFAULT_TOPOLOGY_CONNECTOR_TIMEOUT- See Also:
-
DEFAULT_TOPOLOGY_CONNECTOR_INTERVAL
static final long DEFAULT_TOPOLOGY_CONNECTOR_INTERVAL- See Also:
-
DEFAULT_DISCOVERY_LITE_CHECK_INTERVAL
static final long DEFAULT_DISCOVERY_LITE_CHECK_INTERVAL- See Also:
-
DEFAULT_CLUSTER_SYNC_SERVICE_TIMEOUT
static final long DEFAULT_CLUSTER_SYNC_SERVICE_TIMEOUT- See Also:
-
DEFAULT_CLUSTER_SYNC_SERVICE_INTERVAL
static final long DEFAULT_CLUSTER_SYNC_SERVICE_INTERVAL- See Also:
-
DEFAULT_MIN_EVENT_DELAY
static final int DEFAULT_MIN_EVENT_DELAY- See Also:
-
DEFAULT_SOCKET_CONNECT_TIMEOUT
static final int DEFAULT_SOCKET_CONNECT_TIMEOUT- See Also:
-
DEFAULT_SO_TIMEOUT
static final int DEFAULT_SO_TIMEOUT- See Also:
-
DEFAULT_BACKOFF_STANDBY_FACTOR
static final int DEFAULT_BACKOFF_STANDBY_FACTOR- See Also:
-
DEFAULT_BACKOFF_STABLE_FACTOR
static final int DEFAULT_BACKOFF_STABLE_FACTOR- See Also:
-
DEFAULT_LEADER_ELECTION_PREFIX
static final long DEFAULT_LEADER_ELECTION_PREFIX- See Also:
-
DEFAULT_TOPOLOGY_CONNECTOR_WHITELIST
-
DEFAULT_DISCOVERY_RESOURCE_PATH
- See Also:
-
DEFAULT_INVERT_LEADER_ELECTION_PREFIX_ORDER
static final boolean DEFAULT_INVERT_LEADER_ELECTION_PREFIX_ORDER- See Also:
-
DEFAULT_SUPPRESS_PARTIALLY_STARTED_INSTANCES
static final boolean DEFAULT_SUPPRESS_PARTIALLY_STARTED_INSTANCES- See Also:
-
JOINER_DELAY_ENABLED_SYSTEM_PROPERTY_NAME
- See Also:
-
DEFAULT_SUPPRESSION_TIMEOUT_SECONDS
static final long DEFAULT_SUPPRESSION_TIMEOUT_SECONDS- See Also:
-
DEFAULT_JOINER_DELAY_SECONDS
static final long DEFAULT_JOINER_DELAY_SECONDS- See Also:
-
DEFAULT_SHARED_KEY_INTERVAL
static final long DEFAULT_SHARED_KEY_INTERVALThe default lifetime of a HMAC shared key in ms. (4h)- See Also:
-
-
Element Details
-
connectorPingTimeout
long connectorPingTimeoutConfigure the timeout (in seconds) after which an instance is considered dead/crashed.- Default:
- 120L
-
connectorPingInterval
long connectorPingIntervalConfigure the interval (in seconds) according to which the heartbeats are exchanged in the topology.- Default:
- 30L
-
discoveryLiteCheckInterval
long discoveryLiteCheckInterval- Default:
- 2L
-
clusterSyncServiceTimeout
long clusterSyncServiceTimeout- Default:
- 120L
-
clusterSyncServiceInterval
long clusterSyncServiceInterval- Default:
- 2L
-
enableSyncToken
boolean enableSyncTokenIf set to true a syncToken will be used on top of waiting for deactivating instances to be fully processed. If set to false, only deactivating instances will be waited for to be fully processed.- Default:
- true
-
minEventDelay
int minEventDelayConfigure the time (in seconds) which must be passed at minimum between sending TOPOLOGY_CHANGING/_CHANGED (avoid flooding).- Default:
- 3
-
socketConnectTimeout
int socketConnectTimeoutConfigure the socket connect timeout for topology connectors.- Default:
- 10
-
soTimeout
int soTimeoutConfigure the socket read timeout (SO_TIMEOUT) for topology connectors.- Default:
- 10
-
topologyConnectorUrls
String[] topologyConnectorUrlsURLs where to join a topology, eg http://localhost:4502/libs/sling/topology/connector- Default:
- {}
-
topologyConnectorWhitelist
String[] topologyConnectorWhitelistlist of ips and/or hostnames which are allowed to connect to /libs/sling/topology/connector- Default:
- {"localhost", "127.0.0.1"}
-
discoveryResourcePath
String discoveryResourcePathPath of resource where to keep discovery information, e.g /var/discovery/oak/- Default:
- "/var/discovery/oak/"
-
autoStopLocalLoopEnabled
boolean autoStopLocalLoopEnabledIf set to true, local-loops of topology connectors are automatically stopped when detected so.- Default:
- false
-
gzipConnectorRequestsEnabled
boolean gzipConnectorRequestsEnabledIf set to true, request body will be gzipped - only works if counter-part accepts gzip-requests!- Default:
- false
-
hmacEnabled
boolean hmacEnabledIf set to true, hmac is enabled and the white list is disabled.- Default:
- false
-
enableEncryption
boolean enableEncryptionIf set to true, and the whitelist is disabled, messages will be encrypted.- Default:
- false
-
backoffStandbyFactor
int backoffStandbyFactorThe property for defining the backoff factor for standby (loop) connectors- Default:
- 5
-
backoffStableFactor
int backoffStableFactorThe property for defining the maximum backoff factor for stable connectors- Default:
- 5
-
leaderElectionPrefix
long leaderElectionPrefix- Default:
- 1L
-
invertLeaderElectionPrefixOrder
boolean invertLeaderElectionPrefixOrder- Default:
- false
-
suppressPartiallyStartedInstance
boolean suppressPartiallyStartedInstance- Default:
- false
-
suppressionTimeoutSeconds
long suppressionTimeoutSeconds- Default:
- -1L
-
joinerDelaySeconds
long joinerDelaySeconds- Default:
- 0L
-