public class Config extends Object implements org.apache.sling.discovery.base.connectors.BaseConfig, org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
The properties are described below under.
| Modifier and Type | Field and Description |
|---|---|
protected long |
clusterSyncServiceInterval |
protected long |
clusterSyncServiceTimeout |
protected long |
connectorPingInterval |
protected long |
connectorPingTimeout |
protected long |
discoveryLiteCheckInterval |
protected String |
discoveryResourcePath |
protected boolean |
invertLeaderElectionPrefixOrder |
protected long |
joinerDelaySeconds |
protected long |
leaderElectionPrefix |
protected int |
minEventDelay |
protected long |
suppressionTimeoutSeconds |
protected boolean |
suppressPartiallyStartedInstance |
protected String[] |
topologyConnectorWhitelist |
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.framework.BundleContext context,
DiscoveryServiceCentralConfig config) |
protected void |
configure(DiscoveryServiceCentralConfig config) |
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() |
long |
getClusterSyncServiceTimeoutMillis() |
long |
getConnectorPingInterval() |
long |
getConnectorPingTimeout() |
long |
getDiscoveryLiteCheckInterval() |
protected String |
getDiscoveryResourcePath() |
String |
getIdMapPath() |
long |
getJoinerDelayMillis() |
long |
getKeyInterval() |
long |
getLeaderElectionPrefix() |
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
|
long |
getSuppressionTimeoutSeconds() |
boolean |
getSuppressPartiallyStartedInstances() |
boolean |
getSyncTokenEnabled() |
String |
getSyncTokenPath() |
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() |
boolean |
isInvertLeaderElectionPrefixOrder() |
protected long connectorPingTimeout
protected long connectorPingInterval
protected long discoveryLiteCheckInterval
protected long clusterSyncServiceTimeout
protected long clusterSyncServiceInterval
protected int minEventDelay
protected String[] topologyConnectorWhitelist
protected String discoveryResourcePath
protected long leaderElectionPrefix
protected boolean invertLeaderElectionPrefixOrder
protected boolean suppressPartiallyStartedInstance
protected long suppressionTimeoutSeconds
protected long joinerDelaySeconds
protected void activate(org.osgi.framework.BundleContext context,
DiscoveryServiceCentralConfig config)
protected void configure(DiscoveryServiceCentralConfig config)
public int getSocketConnectTimeout()
getSocketConnectTimeout in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic int getSoTimeout()
getSoTimeout in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic int getMinEventDelay()
getMinEventDelay in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic URL[] getTopologyConnectorURLs()
getTopologyConnectorURLs in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic String[] getTopologyConnectorWhitelist()
getTopologyConnectorWhitelist in interface org.apache.sling.discovery.base.connectors.BaseConfigprotected String getDiscoveryResourcePath()
public String getClusterInstancesPath()
getClusterInstancesPath in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic String getSyncTokenPath()
getSyncTokenPath in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfigpublic String getIdMapPath()
getIdMapPath in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfigpublic boolean isHmacEnabled()
isHmacEnabled in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic String getSharedKey()
getSharedKey in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic long getKeyInterval()
getKeyInterval in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic boolean isEncryptionEnabled()
isEncryptionEnabled in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic boolean isGzipConnectorRequestsEnabled()
isGzipConnectorRequestsEnabled in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic boolean isAutoStopLocalLoopEnabled()
isAutoStopLocalLoopEnabled in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic int getBackoffStandbyFactor()
getBackoffStandbyFactor in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic int getBackoffStableFactor()
getBackoffStableFactor in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic long getBackoffStandbyInterval()
getBackoffStandbyInterval in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic long getConnectorPingInterval()
getConnectorPingInterval in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic long getConnectorPingTimeout()
getConnectorPingTimeout in interface org.apache.sling.discovery.base.connectors.BaseConfigpublic long getDiscoveryLiteCheckInterval()
public long getClusterSyncServiceTimeoutMillis()
getClusterSyncServiceTimeoutMillis in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfigpublic long getClusterSyncServiceIntervalMillis()
getClusterSyncServiceIntervalMillis in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfigpublic boolean getSyncTokenEnabled()
public boolean isInvertLeaderElectionPrefixOrder()
public long getLeaderElectionPrefix()
public boolean getSuppressPartiallyStartedInstances()
public long getSuppressionTimeoutSeconds()
public long getJoinerDelayMillis()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.