Class AtomixClusterStore
- java.lang.Object
-
- org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>
-
- org.onosproject.store.atomix.cluster.impl.AtomixClusterStore
-
- All Implemented Interfaces:
org.onosproject.cluster.ClusterStore,org.onosproject.store.Store<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate>
public class AtomixClusterStore extends org.onosproject.store.AbstractStore<org.onosproject.cluster.ClusterEvent,org.onosproject.cluster.ClusterStoreDelegate> implements org.onosproject.cluster.ClusterStoreAtomix cluster store.
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomixManageratomixManagerprotected org.onosproject.core.VersionServiceversionService
-
Constructor Summary
Constructors Constructor Description AtomixClusterStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()org.onosproject.cluster.ControllerNodeaddNode(org.onosproject.cluster.NodeId nodeId, org.onlab.packet.IpAddress ip, int tcpPort)voiddeactivate()java.time.InstantgetLastUpdatedInstant(org.onosproject.cluster.NodeId nodeId)org.onosproject.cluster.ControllerNodegetLocalNode()org.onosproject.cluster.ControllerNodegetNode(org.onosproject.cluster.NodeId nodeId)java.util.Set<org.onosproject.cluster.ControllerNode>getNodes()org.onosproject.cluster.ControllerNode.StategetState(org.onosproject.cluster.NodeId nodeId)java.util.Set<org.onosproject.cluster.Node>getStorageNodes()org.onosproject.core.VersiongetVersion(org.onosproject.cluster.NodeId nodeId)voidmarkFullyStarted(boolean started)voidremoveNode(org.onosproject.cluster.NodeId nodeId)-
Methods inherited from class org.onosproject.store.AbstractStore
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate
-
-
-
-
Field Detail
-
atomixManager
protected AtomixManager atomixManager
-
versionService
protected org.onosproject.core.VersionService versionService
-
-
Method Detail
-
activate
public void activate()
-
deactivate
public void deactivate()
-
getLocalNode
public org.onosproject.cluster.ControllerNode getLocalNode()
- Specified by:
getLocalNodein interfaceorg.onosproject.cluster.ClusterStore
-
getStorageNodes
public java.util.Set<org.onosproject.cluster.Node> getStorageNodes()
- Specified by:
getStorageNodesin interfaceorg.onosproject.cluster.ClusterStore
-
getNodes
public java.util.Set<org.onosproject.cluster.ControllerNode> getNodes()
- Specified by:
getNodesin interfaceorg.onosproject.cluster.ClusterStore
-
getNode
public org.onosproject.cluster.ControllerNode getNode(org.onosproject.cluster.NodeId nodeId)
- Specified by:
getNodein interfaceorg.onosproject.cluster.ClusterStore
-
getState
public org.onosproject.cluster.ControllerNode.State getState(org.onosproject.cluster.NodeId nodeId)
- Specified by:
getStatein interfaceorg.onosproject.cluster.ClusterStore
-
getVersion
public org.onosproject.core.Version getVersion(org.onosproject.cluster.NodeId nodeId)
- Specified by:
getVersionin interfaceorg.onosproject.cluster.ClusterStore
-
getLastUpdatedInstant
public java.time.Instant getLastUpdatedInstant(org.onosproject.cluster.NodeId nodeId)
- Specified by:
getLastUpdatedInstantin interfaceorg.onosproject.cluster.ClusterStore
-
markFullyStarted
public void markFullyStarted(boolean started)
- Specified by:
markFullyStartedin interfaceorg.onosproject.cluster.ClusterStore
-
addNode
public org.onosproject.cluster.ControllerNode addNode(org.onosproject.cluster.NodeId nodeId, org.onlab.packet.IpAddress ip, int tcpPort)- Specified by:
addNodein interfaceorg.onosproject.cluster.ClusterStore
-
removeNode
public void removeNode(org.onosproject.cluster.NodeId nodeId)
- Specified by:
removeNodein interfaceorg.onosproject.cluster.ClusterStore
-
-