Interface ClusterManagerInternal
- All Superinterfaces:
ClusterExecutionService,ClusterManager
- All Known Implementing Classes:
HazelcastClusterManager,NonClusterManager
- 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.booleanvoidreconfigure(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, 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
-