Class AbstractDistributedPiTranslationStore<T extends org.onosproject.net.pi.service.PiTranslatable,​E extends org.onosproject.net.pi.runtime.PiEntity>

  • All Implemented Interfaces:
    org.onosproject.net.pi.service.PiTranslationStore<T,​E>, org.onosproject.store.Store<org.onosproject.net.pi.service.PiTranslationEvent<T,​E>,​org.onosproject.net.pi.service.PiTranslationStoreDelegate<T,​E>>
    Direct Known Subclasses:
    DistributedPiFlowRuleTranslationStore, DistributedPiGroupTranslationStore, DistributedPiMeterTranslationStore, DistributedPiReplicationGroupTranslationStore

    public abstract class AbstractDistributedPiTranslationStore<T extends org.onosproject.net.pi.service.PiTranslatable,​E extends org.onosproject.net.pi.runtime.PiEntity>
    extends org.onosproject.store.AbstractStore<org.onosproject.net.pi.service.PiTranslationEvent<T,​E>,​org.onosproject.net.pi.service.PiTranslationStoreDelegate<T,​E>>
    implements org.onosproject.net.pi.service.PiTranslationStore<T,​E>
    Distributed implementation of PiTranslationStore.
    • 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 Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      void addOrUpdate​(org.onosproject.net.pi.runtime.PiHandle handle, org.onosproject.net.pi.service.PiTranslatedEntity<T,​E> entity)  
      void deactivate()  
      org.onosproject.net.pi.service.PiTranslatedEntity<T,​E> get​(org.onosproject.net.pi.runtime.PiHandle handle)  
      java.lang.Iterable<org.onosproject.net.pi.service.PiTranslatedEntity<T,​E>> getAll()  
      protected abstract java.lang.String mapSimpleName()
      Returns a string that identifies the map maintained by this store among others that uses this abstract class.
      void remove​(org.onosproject.net.pi.runtime.PiHandle handle)  
      • 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

      • AbstractDistributedPiTranslationStore

        public AbstractDistributedPiTranslationStore()
    • Method Detail

      • mapSimpleName

        protected abstract java.lang.String mapSimpleName()
        Returns a string that identifies the map maintained by this store among others that uses this abstract class.
        Returns:
        string
      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • addOrUpdate

        public void addOrUpdate​(org.onosproject.net.pi.runtime.PiHandle handle,
                                org.onosproject.net.pi.service.PiTranslatedEntity<T,​E> entity)
        Specified by:
        addOrUpdate in interface org.onosproject.net.pi.service.PiTranslationStore<T extends org.onosproject.net.pi.service.PiTranslatable,​E extends org.onosproject.net.pi.runtime.PiEntity>
      • remove

        public void remove​(org.onosproject.net.pi.runtime.PiHandle handle)
        Specified by:
        remove in interface org.onosproject.net.pi.service.PiTranslationStore<T extends org.onosproject.net.pi.service.PiTranslatable,​E extends org.onosproject.net.pi.runtime.PiEntity>
      • get

        public org.onosproject.net.pi.service.PiTranslatedEntity<T,​E> get​(org.onosproject.net.pi.runtime.PiHandle handle)
        Specified by:
        get in interface org.onosproject.net.pi.service.PiTranslationStore<T extends org.onosproject.net.pi.service.PiTranslatable,​E extends org.onosproject.net.pi.runtime.PiEntity>
      • getAll

        public java.lang.Iterable<org.onosproject.net.pi.service.PiTranslatedEntity<T,​E>> getAll()