public interface ClusterService
| Modifier and Type | Method and Description |
|---|---|
ClusterInformation |
getInformation() |
String |
getNodeId()
Convenience method for obtaining the ID for the local node.
|
Map<ClusterNode,ApplicationState> |
getNodeStates()
Retrieve the current status of the individual cluster nodes.
|
boolean |
isAvailable() |
boolean |
isClustered() |
boolean |
isLeader() |
@Nonnull ClusterInformation getInformation()
nodes@Nonnull String getNodeId()
getInformation().getLocalNode().getId()@Nonnull Map<ClusterNode,ApplicationState> getNodeStates() throws ClusterExecutionException
UNKNOWN.ClusterExecutionException - when execution on the remote nodes fails for any reasonboolean isAvailable()
true if clustering is available; otherwise, falseboolean isClustered()
true if clustering is available and at least two nodes have
joined the clusterboolean isLeader()
true if the current node is the leader node; also true if clustering is not enabledCopyright © 2024 Atlassian. All rights reserved.