public interface ClusterService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ClusterEventListener listener)
Adds the specified cluster event listener.
|
ControllerNode |
getLocalNode()
Returns the local controller node.
|
ControllerNode |
getNode(NodeId nodeId)
Returns the specified controller node.
|
Set<ControllerNode> |
getNodes()
Returns the set of current cluster members.
|
ControllerNode.State |
getState(NodeId nodeId)
Returns the availability state of the specified controller node.
|
void |
removeListener(ClusterEventListener listener)
Removes the specified cluster event listener.
|
ControllerNode getLocalNode()
Set<ControllerNode> getNodes()
ControllerNode getNode(NodeId nodeId)
nodeId - controller node identifierControllerNode.State getState(NodeId nodeId)
nodeId - controller node identifiervoid addListener(ClusterEventListener listener)
listener - the cluster listenervoid removeListener(ClusterEventListener listener)
listener - the cluster listenerCopyright © 2015. All rights reserved.