Interface ClusterManagerInternal
- All Superinterfaces:
ClusterExecutionService,ClusterManager
- All Known Implementing Classes:
NonClusterManager,NutclusterClusterManager
- Since:
- 9.0
-
Field Summary
Fields inherited from interface com.atlassian.confluence.cluster.ClusterExecutionService
DEFAULT_EXECUTOR_SVC_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(ClusterConfig config) Set a new cluster configuration.@Nullable ClusterInvariantsGet all attributes of the server that must be consistent between the nodes of a stable cluster.booleanvoidpublishEvent(Serializable event) Publish an event as a ClusterEventWrapper to other nodesvoidPublish immediately, an event as a ClusterEventWrapper to other nodesvoidreconfigure(ClusterConfig config) Set a new cluster configuration and cycle the servicevoidStart the clustering servicevoidStop the clustering serviceMethods inherited from interface com.atlassian.confluence.cluster.ClusterExecutionService
submitToAllNodes, submitToKeyOwner, submitToNodeMethods inherited from interface com.atlassian.confluence.cluster.ClusterManager
getAllNodesInformation, getClusterInformation, getClusterUptime, getNodeStatusMap, getThisNodeInformation, isClustered, release, tryAcquire
-
Method Details
-
configure
Set a new cluster configuration.- Parameters:
config-
-
isConfigured
boolean isConfigured()- Returns:
- true if
configure(ClusterConfig)has been called with a valid configuration, otherwise false.
-
reconfigure
Set a new cluster configuration and cycle the service- Parameters:
config-- Throws:
ClusterException
-
stopCluster
void stopCluster()Stop the clustering service -
startCluster
Start the clustering service- Throws:
ClusterException
-
getClusterInvariants
Get all attributes of the server that must be consistent between the nodes of a stable cluster. They are to be retrieved from another member in the cluster. If there are no other members currently active in the cluster, then return null.- Returns:
- the cluster invariants of this server
- Throws:
ClusterException- if the invariants can not be gathered for some reason
-
publishEvent
Publish an event as a ClusterEventWrapper to other nodesThis waits for any current transaction to be committed successfully before scheduling the event for publishing.
-
publishEventImmediately
Publish immediately, an event as a ClusterEventWrapper to other nodesThis is done immediately regardless of the state of any current transactions.
-