Class DistributedDevicePipeconfMappingStore

  • All Implemented Interfaces:
    org.onosproject.net.pi.service.PiPipeconfMappingStore, org.onosproject.store.Store<org.onosproject.net.pi.service.PiPipeconfDeviceMappingEvent,​org.onosproject.net.pi.service.PiPipeconfMappingStoreDelegate>

    public class DistributedDevicePipeconfMappingStore
    extends org.onosproject.store.AbstractStore<org.onosproject.net.pi.service.PiPipeconfDeviceMappingEvent,​org.onosproject.net.pi.service.PiPipeconfMappingStoreDelegate>
    implements org.onosproject.net.pi.service.PiPipeconfMappingStore
    Manages information of pipeconf to device binding.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onosproject.store.service.ConsistentMap<org.onosproject.net.DeviceId,​org.onosproject.net.pi.model.PiPipeconfId> deviceToPipeconf  
      protected org.onosproject.store.service.MapEventListener<org.onosproject.net.DeviceId,​org.onosproject.net.pi.model.PiPipeconfId> mapListener  
      protected com.google.common.collect.SetMultimap<org.onosproject.net.pi.model.PiPipeconfId,​org.onosproject.net.DeviceId> pipeconfToDevices  
      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()  
      void createOrUpdateBinding​(org.onosproject.net.DeviceId deviceId, org.onosproject.net.pi.model.PiPipeconfId pipeconfId)  
      void deactivate()  
      java.util.Set<org.onosproject.net.DeviceId> getDevices​(org.onosproject.net.pi.model.PiPipeconfId pipeconfId)  
      org.onosproject.net.pi.model.PiPipeconfId getPipeconfId​(org.onosproject.net.DeviceId deviceId)  
      void removeBinding​(org.onosproject.net.DeviceId deviceId)  
      • 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
      • deviceToPipeconf

        protected org.onosproject.store.service.ConsistentMap<org.onosproject.net.DeviceId,​org.onosproject.net.pi.model.PiPipeconfId> deviceToPipeconf
      • mapListener

        protected final org.onosproject.store.service.MapEventListener<org.onosproject.net.DeviceId,​org.onosproject.net.pi.model.PiPipeconfId> mapListener
      • pipeconfToDevices

        protected com.google.common.collect.SetMultimap<org.onosproject.net.pi.model.PiPipeconfId,​org.onosproject.net.DeviceId> pipeconfToDevices
    • Constructor Detail

      • DistributedDevicePipeconfMappingStore

        public DistributedDevicePipeconfMappingStore()
    • Method Detail

      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • getPipeconfId

        public org.onosproject.net.pi.model.PiPipeconfId getPipeconfId​(org.onosproject.net.DeviceId deviceId)
        Specified by:
        getPipeconfId in interface org.onosproject.net.pi.service.PiPipeconfMappingStore
      • getDevices

        public java.util.Set<org.onosproject.net.DeviceId> getDevices​(org.onosproject.net.pi.model.PiPipeconfId pipeconfId)
        Specified by:
        getDevices in interface org.onosproject.net.pi.service.PiPipeconfMappingStore
      • createOrUpdateBinding

        public void createOrUpdateBinding​(org.onosproject.net.DeviceId deviceId,
                                          org.onosproject.net.pi.model.PiPipeconfId pipeconfId)
        Specified by:
        createOrUpdateBinding in interface org.onosproject.net.pi.service.PiPipeconfMappingStore
      • removeBinding

        public void removeBinding​(org.onosproject.net.DeviceId deviceId)
        Specified by:
        removeBinding in interface org.onosproject.net.pi.service.PiPipeconfMappingStore