public interface ClusterStore extends Store<ClusterEvent,ClusterStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
ControllerNode |
addNode(NodeId nodeId,
org.onlab.packet.IpAddress ip,
int tcpPort)
Adds a new controller node to the cluster.
|
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 |
removeNode(NodeId nodeId)
Removes the specified node from the inventory of cluster nodes.
|
hasDelegate, setDelegate, unsetDelegateControllerNode getLocalNode()
Set<ControllerNode> getNodes()
ControllerNode getNode(NodeId nodeId)
nodeId - controller instance identifierControllerNode.State getState(NodeId nodeId)
nodeId - controller instance identifierControllerNode addNode(NodeId nodeId, org.onlab.packet.IpAddress ip, int tcpPort)
nodeId - controller node identifierip - node IP listen addresstcpPort - tcp listen portvoid removeNode(NodeId nodeId)
nodeId - controller instance identifierCopyright © 2015. All rights reserved.