@Service
public class SimpleClusterStore
extends org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>
implements org.onosproject.cluster.ClusterStore, org.onosproject.net.intent.PartitionService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.event.EventDeliveryService |
eventDispatcher |
static org.onlab.packet.IpAddress |
LOCALHOST |
| Constructor and Description |
|---|
SimpleClusterStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(org.onosproject.net.intent.PartitionEventListener listener) |
org.onosproject.cluster.ControllerNode |
addNode(org.onosproject.cluster.NodeId nodeId,
org.onlab.packet.IpAddress ip,
int tcpPort) |
void |
deactivate() |
org.joda.time.DateTime |
getLastUpdated(org.onosproject.cluster.NodeId nodeId) |
org.onosproject.cluster.NodeId |
getLeader(org.onosproject.net.intent.Key intentKey) |
org.onosproject.cluster.ControllerNode |
getLocalNode() |
org.onosproject.cluster.ControllerNode |
getNode(org.onosproject.cluster.NodeId nodeId) |
Set<org.onosproject.cluster.ControllerNode> |
getNodes() |
org.onosproject.cluster.ControllerNode.State |
getState(org.onosproject.cluster.NodeId nodeId) |
boolean |
isMine(org.onosproject.net.intent.Key intentKey) |
void |
removeListener(org.onosproject.net.intent.PartitionEventListener listener) |
void |
removeNode(org.onosproject.cluster.NodeId nodeId) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegatepublic static final org.onlab.packet.IpAddress LOCALHOST
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.event.EventDeliveryService eventDispatcher
@Activate public void activate()
@Deactivate public void deactivate()
public org.onosproject.cluster.ControllerNode getLocalNode()
getLocalNode in interface org.onosproject.cluster.ClusterStorepublic Set<org.onosproject.cluster.ControllerNode> getNodes()
getNodes in interface org.onosproject.cluster.ClusterStorepublic org.onosproject.cluster.ControllerNode getNode(org.onosproject.cluster.NodeId nodeId)
getNode in interface org.onosproject.cluster.ClusterStorepublic org.onosproject.cluster.ControllerNode.State getState(org.onosproject.cluster.NodeId nodeId)
getState in interface org.onosproject.cluster.ClusterStorepublic org.joda.time.DateTime getLastUpdated(org.onosproject.cluster.NodeId nodeId)
getLastUpdated in interface org.onosproject.cluster.ClusterStorepublic org.onosproject.cluster.ControllerNode addNode(org.onosproject.cluster.NodeId nodeId,
org.onlab.packet.IpAddress ip,
int tcpPort)
addNode in interface org.onosproject.cluster.ClusterStorepublic void removeNode(org.onosproject.cluster.NodeId nodeId)
removeNode in interface org.onosproject.cluster.ClusterStorepublic boolean isMine(org.onosproject.net.intent.Key intentKey)
isMine in interface org.onosproject.net.intent.PartitionServicepublic org.onosproject.cluster.NodeId getLeader(org.onosproject.net.intent.Key intentKey)
getLeader in interface org.onosproject.net.intent.PartitionServicepublic void addListener(org.onosproject.net.intent.PartitionEventListener listener)
addListener in interface org.onosproject.net.intent.PartitionServicepublic void removeListener(org.onosproject.net.intent.PartitionEventListener listener)
removeListener in interface org.onosproject.net.intent.PartitionServiceCopyright © 2015. All rights reserved.