public class ClusterServiceImpl extends Object implements ClusterService
| Constructor and Description |
|---|
ClusterServiceImpl(NodeDataProvider nodeDataProvider,
ClusterHeartbeatService heartbeatService,
ClusterInfoDao clusterInfoDao,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ClusterNode> |
getClusterNode()
Retrieves details for this node
|
ClusterInformation |
getInformation() |
String |
getNodeId()
Retrieves a cluster-wide unique identifier for this node.
|
boolean |
isAvailable() |
public ClusterServiceImpl(NodeDataProvider nodeDataProvider, ClusterHeartbeatService heartbeatService, ClusterInfoDao clusterInfoDao, Clock clock)
public boolean isAvailable()
isAvailable in interface ClusterServicetrue if clustering is available, otherwise falsepublic String getNodeId()
ClusterServiceThe value is guaranteed to be unique within the cluster. If the cluster is restarted, every node's ID will still be unique but will likely not be the same as the previous value.
getNodeId in interface ClusterServiceClusterNode.getNodeId()@Transactional(readOnly=true) public Optional<ClusterNode> getClusterNode()
ClusterServicegetClusterNode in interface ClusterService@Transactional(readOnly=true) @Nonnull public ClusterInformation getInformation()
getInformation in interface ClusterServicenodesCopyright © 2023 Atlassian. All rights reserved.