Class ClusterServiceImpl
java.lang.Object
com.atlassian.crowd.manager.cluster.ClusterServiceImpl
- All Implemented Interfaces:
ClusterService
Implementation of com.atlassian.crowd.service.cluster.ClusterService
- Since:
- 2.12.0
-
Constructor Summary
ConstructorDescriptionClusterServiceImpl
(NodeDataProvider nodeDataProvider, ClusterHeartbeatService heartbeatService, ClusterInfoDao clusterInfoDao, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves details for this nodeRetrieves a cluster-wide unique identifier for this node.boolean
-
Constructor Details
-
ClusterServiceImpl
public ClusterServiceImpl(NodeDataProvider nodeDataProvider, ClusterHeartbeatService heartbeatService, ClusterInfoDao clusterInfoDao, Clock clock)
-
-
Method Details
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailable
in interfaceClusterService
- Returns:
true
if clustering is available, otherwisefalse
-
getNodeId
Description copied from interface:ClusterService
Retrieves a cluster-wide unique identifier for this node.The 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.
- Specified by:
getNodeId
in interfaceClusterService
- Returns:
- a cluster-wide unique opaque identifier for this node
- See Also:
-
getClusterNode
Description copied from interface:ClusterService
Retrieves details for this node- Specified by:
getClusterNode
in interfaceClusterService
- Returns:
- details for this node or empty optional if clustering is unavailable
-
getInformation
- Specified by:
getInformation
in interfaceClusterService
- Returns:
- details about the cluster and its
nodes
-