Class DefaultClusterSafetyManager
- java.lang.Object
-
- com.atlassian.confluence.cluster.safety.AbstractClusterSafetyManager
-
- com.atlassian.confluence.cluster.safety.DefaultClusterSafetyManager
-
- All Implemented Interfaces:
ClusterSafetyManager
@Internal public class DefaultClusterSafetyManager extends AbstractClusterSafetyManager
Default implementation for non-clustered confluence. According to atlassian documentation, cluster safety should be enabled in standalone configuration: https://confluence.atlassian.com/confkb/cluster-safety-in-a-single-node-standalone-instance-312738003.html
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.cluster.safety.AbstractClusterSafetyManager
NON_CLUSTERED_NODE_NAME, NOT_FOUND_STATEMENT, random, SAFETY_NUMBER, SAFETY_NUMBER_MODIFIER
-
-
Constructor Summary
Constructors Constructor Description DefaultClusterSafetyManager(ClusterSafetyDao clusterSafetyDao, com.atlassian.event.api.EventPublisher eventPublisher, SharedDataManager clusterSharedDataManager, ClusterManager clusterManager, LicenseService licenseService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.slf4j.Logger
getLogger()
protected Map<String,Integer>
getSafetyNumberMap()
protected Map<String,String>
getSafetyNumberModifierMap()
protected void
handlePanic()
protected void
logRuntimeInfo()
-
Methods inherited from class com.atlassian.confluence.cluster.safety.AbstractClusterSafetyManager
getClusterManager, getEventPublisher, getLicenseService, getNextValue, getNodeName, isLogEnabled, onCacheNumberIsMissed, onDatabaseNumberIsMissed, onNumbersAreDifferent, onNumbersAreEqual, onNumbersMissed, updateSafetyNumber, verify
-
-
-
-
Constructor Detail
-
DefaultClusterSafetyManager
public DefaultClusterSafetyManager(ClusterSafetyDao clusterSafetyDao, com.atlassian.event.api.EventPublisher eventPublisher, SharedDataManager clusterSharedDataManager, ClusterManager clusterManager, LicenseService licenseService)
-
-
Method Detail
-
logRuntimeInfo
protected void logRuntimeInfo()
- Specified by:
logRuntimeInfo
in classAbstractClusterSafetyManager
-
getLogger
protected org.slf4j.Logger getLogger()
- Specified by:
getLogger
in classAbstractClusterSafetyManager
-
getSafetyNumberModifierMap
protected Map<String,String> getSafetyNumberModifierMap()
- Specified by:
getSafetyNumberModifierMap
in classAbstractClusterSafetyManager
-
getSafetyNumberMap
protected Map<String,Integer> getSafetyNumberMap()
- Specified by:
getSafetyNumberMap
in classAbstractClusterSafetyManager
-
handlePanic
protected void handlePanic()
- Specified by:
handlePanic
in classAbstractClusterSafetyManager
-
-