public class MockClusterService extends Object implements ClusterService
Constructor and Description |
---|
MockClusterService() |
Modifier and Type | Method and Description |
---|---|
ClusterInformation |
getInformation() |
String |
getNodeId()
Retrieves a cluster-wide unique identifier for this node.
|
boolean |
isAvailable() |
public boolean isAvailable()
isAvailable
in interface ClusterService
true
if clustering is available, otherwise false
@Nonnull public String getNodeId()
ClusterService
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.
getNodeId
in interface ClusterService
ClusterNode.getNodeId()
@Nonnull public ClusterInformation getInformation()
getInformation
in interface ClusterService
nodes
Copyright © 2017 Atlassian. All rights reserved.