public interface ClusterService extends ListenerService<ClusterEvent,ClusterEventListener>
Modifier and Type | Method and Description |
---|---|
default org.joda.time.DateTime |
getLastUpdated(NodeId nodeId)
Deprecated.
in 1.12.0
|
default java.time.Instant |
getLastUpdatedInstant(NodeId nodeId)
Returns the system time when the availability state was last updated.
|
ControllerNode |
getLocalNode()
Returns the local controller node.
|
ControllerNode |
getNode(NodeId nodeId)
Returns the specified controller node.
|
java.util.Set<ControllerNode> |
getNodes()
Returns the set of current cluster members.
|
ControllerNode.State |
getState(NodeId nodeId)
Returns the availability state of the specified controller node.
|
Version |
getVersion(NodeId nodeId)
Returns the version of the given controller node.
|
addListener, removeListener
ControllerNode getLocalNode()
java.util.Set<ControllerNode> getNodes()
ControllerNode getNode(NodeId nodeId)
nodeId
- controller node identifierControllerNode.State getState(NodeId nodeId)
nodeId
- controller node identifierVersion getVersion(NodeId nodeId)
nodeId
- controller node identifierdefault java.time.Instant getLastUpdatedInstant(NodeId nodeId)
nodeId
- controller node identifier@Deprecated default org.joda.time.DateTime getLastUpdated(NodeId nodeId)
nodeId
- controller node identifier