public interface ClusterService
Modifier and Type | Method and Description |
---|---|
ClusterInformation |
getInformation() |
String |
getNodeId()
Convenience method for obtaining the ID for the local node.
|
boolean |
isAvailable() |
boolean |
isClustered() |
boolean |
isLeader() |
@Nonnull ClusterInformation getInformation()
nodes
@Nonnull String getNodeId()
getInformation().getLocalNode().getId()
boolean isAvailable()
true
if clustering is available; otherwise, false
boolean 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 © 2022 Atlassian. All rights reserved.