Class 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.ClusterStore
    Atomix cluster store.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected AtomixManager atomixManager  
      protected org.onosproject.core.VersionService versionService  
      • Fields inherited from class org.onosproject.store.AbstractStore

        delegate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      org.onosproject.cluster.ControllerNode addNode​(org.onosproject.cluster.NodeId nodeId, org.onlab.packet.IpAddress ip, int tcpPort)  
      void deactivate()  
      java.time.Instant getLastUpdatedInstant​(org.onosproject.cluster.NodeId nodeId)  
      org.onosproject.cluster.ControllerNode getLocalNode()  
      org.onosproject.cluster.ControllerNode getNode​(org.onosproject.cluster.NodeId nodeId)  
      java.util.Set<org.onosproject.cluster.ControllerNode> getNodes()  
      org.onosproject.cluster.ControllerNode.State getState​(org.onosproject.cluster.NodeId nodeId)  
      java.util.Set<org.onosproject.cluster.Node> getStorageNodes()  
      org.onosproject.core.Version getVersion​(org.onosproject.cluster.NodeId nodeId)  
      void markFullyStarted​(boolean started)  
      void removeNode​(org.onosproject.cluster.NodeId nodeId)  
      • Methods inherited from class org.onosproject.store.AbstractStore

        hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.store.Store

        hasDelegate, setDelegate, unsetDelegate
    • Field Detail

      • versionService

        protected org.onosproject.core.VersionService versionService
    • Constructor Detail

      • AtomixClusterStore

        public AtomixClusterStore()
    • Method Detail

      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • getLocalNode

        public org.onosproject.cluster.ControllerNode getLocalNode()
        Specified by:
        getLocalNode in interface org.onosproject.cluster.ClusterStore
      • getStorageNodes

        public java.util.Set<org.onosproject.cluster.Node> getStorageNodes()
        Specified by:
        getStorageNodes in interface org.onosproject.cluster.ClusterStore
      • getNodes

        public java.util.Set<org.onosproject.cluster.ControllerNode> getNodes()
        Specified by:
        getNodes in interface org.onosproject.cluster.ClusterStore
      • getNode

        public org.onosproject.cluster.ControllerNode getNode​(org.onosproject.cluster.NodeId nodeId)
        Specified by:
        getNode in interface org.onosproject.cluster.ClusterStore
      • getState

        public org.onosproject.cluster.ControllerNode.State getState​(org.onosproject.cluster.NodeId nodeId)
        Specified by:
        getState in interface org.onosproject.cluster.ClusterStore
      • getVersion

        public org.onosproject.core.Version getVersion​(org.onosproject.cluster.NodeId nodeId)
        Specified by:
        getVersion in interface org.onosproject.cluster.ClusterStore
      • getLastUpdatedInstant

        public java.time.Instant getLastUpdatedInstant​(org.onosproject.cluster.NodeId nodeId)
        Specified by:
        getLastUpdatedInstant in interface org.onosproject.cluster.ClusterStore
      • markFullyStarted

        public void markFullyStarted​(boolean started)
        Specified by:
        markFullyStarted in interface org.onosproject.cluster.ClusterStore
      • addNode

        public org.onosproject.cluster.ControllerNode addNode​(org.onosproject.cluster.NodeId nodeId,
                                                              org.onlab.packet.IpAddress ip,
                                                              int tcpPort)
        Specified by:
        addNode in interface org.onosproject.cluster.ClusterStore
      • removeNode

        public void removeNode​(org.onosproject.cluster.NodeId nodeId)
        Specified by:
        removeNode in interface org.onosproject.cluster.ClusterStore