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.BaseConfig
public int getSoTimeout()
getSoTimeout
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public int getMinEventDelay()
getMinEventDelay
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public URL[] getTopologyConnectorURLs()
getTopologyConnectorURLs
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public String[] getTopologyConnectorWhitelist()
getTopologyConnectorWhitelist
in interface org.apache.sling.discovery.base.connectors.BaseConfig
protected String getDiscoveryResourcePath()
public String getClusterInstancesPath()
getClusterInstancesPath
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public String getSyncTokenPath()
getSyncTokenPath
in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
public String getIdMapPath()
getIdMapPath
in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
public boolean isHmacEnabled()
isHmacEnabled
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public String getSharedKey()
getSharedKey
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public long getKeyInterval()
getKeyInterval
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public boolean isEncryptionEnabled()
isEncryptionEnabled
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public boolean isGzipConnectorRequestsEnabled()
isGzipConnectorRequestsEnabled
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public boolean isAutoStopLocalLoopEnabled()
isAutoStopLocalLoopEnabled
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public int getBackoffStandbyFactor()
getBackoffStandbyFactor
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public int getBackoffStableFactor()
getBackoffStableFactor
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public long getBackoffStandbyInterval()
getBackoffStandbyInterval
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public long getConnectorPingInterval()
getConnectorPingInterval
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public long getConnectorPingTimeout()
getConnectorPingTimeout
in interface org.apache.sling.discovery.base.connectors.BaseConfig
public long getDiscoveryLiteCheckInterval()
public long getClusterSyncServiceTimeoutMillis()
getClusterSyncServiceTimeoutMillis
in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
public long getClusterSyncServiceIntervalMillis()
getClusterSyncServiceIntervalMillis
in interface org.apache.sling.discovery.commons.providers.spi.base.DiscoveryLiteConfig
public 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.