Class DistributedFlowObjectiveStore

  • All Implemented Interfaces:
    org.onosproject.net.flowobjective.FlowObjectiveStore, org.onosproject.store.Store<org.onosproject.net.flowobjective.ObjectiveEvent,​org.onosproject.net.flowobjective.FlowObjectiveStoreDelegate>

    public class DistributedFlowObjectiveStore
    extends org.onosproject.store.AbstractStore<org.onosproject.net.flowobjective.ObjectiveEvent,​org.onosproject.net.flowobjective.FlowObjectiveStoreDelegate>
    implements org.onosproject.net.flowobjective.FlowObjectiveStore
    Manages the inventory of created next groups.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onosproject.store.service.StorageService storageService  
      • Fields inherited from class org.onosproject.store.AbstractStore

        delegate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      int allocateNextId()  
      void deactivate()  
      java.util.Map<java.lang.Integer,​org.onosproject.net.behaviour.NextGroup> getAllGroups()  
      org.onosproject.net.behaviour.NextGroup getNextGroup​(java.lang.Integer nextId)  
      void putNextGroup​(java.lang.Integer nextId, org.onosproject.net.behaviour.NextGroup group)  
      org.onosproject.net.behaviour.NextGroup removeNextGroup​(java.lang.Integer nextId)  
      • 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

      • storageService

        protected org.onosproject.store.service.StorageService storageService
    • Constructor Detail

      • DistributedFlowObjectiveStore

        public DistributedFlowObjectiveStore()
    • Method Detail

      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • putNextGroup

        public void putNextGroup​(java.lang.Integer nextId,
                                 org.onosproject.net.behaviour.NextGroup group)
        Specified by:
        putNextGroup in interface org.onosproject.net.flowobjective.FlowObjectiveStore
      • getNextGroup

        public org.onosproject.net.behaviour.NextGroup getNextGroup​(java.lang.Integer nextId)
        Specified by:
        getNextGroup in interface org.onosproject.net.flowobjective.FlowObjectiveStore
      • removeNextGroup

        public org.onosproject.net.behaviour.NextGroup removeNextGroup​(java.lang.Integer nextId)
        Specified by:
        removeNextGroup in interface org.onosproject.net.flowobjective.FlowObjectiveStore
      • getAllGroups

        public java.util.Map<java.lang.Integer,​org.onosproject.net.behaviour.NextGroup> getAllGroups()
        Specified by:
        getAllGroups in interface org.onosproject.net.flowobjective.FlowObjectiveStore
      • allocateNextId

        public int allocateNextId()
        Specified by:
        allocateNextId in interface org.onosproject.net.flowobjective.FlowObjectiveStore