Interface ClusterManagerInternal
- All Superinterfaces:
ClusterExecutionService
,ClusterManager
- All Known Implementing Classes:
HazelcastClusterManager
- Since:
- 9.0
-
Field Summary
Fields inherited from interface com.atlassian.confluence.cluster.ClusterExecutionService
DEFAULT_EXECUTOR_SVC_NAME
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(ClusterConfig config) Set a new cluster configuration.@Nullable ClusterInvariants
Get all attributes of the server that must be consistent between the nodes of a stable cluster.boolean
void
reconfigure
(ClusterConfig config) Set a new cluster configuration and cycle the servicevoid
Start the clustering servicevoid
Stop the clustering serviceMethods inherited from interface com.atlassian.confluence.cluster.ClusterExecutionService
submitToAllNodes, submitToKeyOwner, submitToNode
Methods inherited from interface com.atlassian.confluence.cluster.ClusterManager
getAllNodesInformation, getClusterInformation, getClusterUptime, getNodeStatusMap, getThisNodeInformation, isClustered, publishEvent, publishEventImmediately
-
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
-