@Service
public class DistributedClusterStore
extends org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>
implements org.onosproject.cluster.ClusterStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cluster.ClusterDefinitionService |
clusterDefinitionService |
static String |
HEARTBEAT_MESSAGE |
protected org.onosproject.store.cluster.messaging.MessagingService |
messagingService |
| Constructor and Description |
|---|
DistributedClusterStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
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.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 |
hasDelegate() |
void |
removeNode(org.onosproject.cluster.NodeId nodeId) |
void |
setDelegate(org.onosproject.cluster.ClusterStoreDelegate delegate) |
void |
unsetDelegate(org.onosproject.cluster.ClusterStoreDelegate delegate) |
public static final String HEARTBEAT_MESSAGE
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterDefinitionService clusterDefinitionService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.MessagingService messagingService
@Activate public void activate()
@Deactivate public void deactivate()
public void setDelegate(org.onosproject.cluster.ClusterStoreDelegate delegate)
setDelegate in interface org.onosproject.store.Store<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>setDelegate in class org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>public void unsetDelegate(org.onosproject.cluster.ClusterStoreDelegate delegate)
unsetDelegate in interface org.onosproject.store.Store<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>unsetDelegate in class org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>public boolean hasDelegate()
hasDelegate in interface org.onosproject.store.Store<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>hasDelegate in class org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>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.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 org.joda.time.DateTime getLastUpdated(org.onosproject.cluster.NodeId nodeId)
getLastUpdated in interface org.onosproject.cluster.ClusterStoreCopyright © 2015. All rights reserved.