Package org.onosproject.store.pi.impl
Class DistributedDevicePipeconfMappingStore
- java.lang.Object
-
- org.onosproject.store.AbstractStore<org.onosproject.net.pi.service.PiPipeconfDeviceMappingEvent,org.onosproject.net.pi.service.PiPipeconfMappingStoreDelegate>
-
- org.onosproject.store.pi.impl.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.PiPipeconfMappingStoreManages 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>deviceToPipeconfprotected org.onosproject.store.service.MapEventListener<org.onosproject.net.DeviceId,org.onosproject.net.pi.model.PiPipeconfId>mapListenerprotected com.google.common.collect.SetMultimap<org.onosproject.net.pi.model.PiPipeconfId,org.onosproject.net.DeviceId>pipeconfToDevicesprotected org.onosproject.store.service.StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description DistributedDevicePipeconfMappingStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voidcreateOrUpdateBinding(org.onosproject.net.DeviceId deviceId, org.onosproject.net.pi.model.PiPipeconfId pipeconfId)voiddeactivate()java.util.Set<org.onosproject.net.DeviceId>getDevices(org.onosproject.net.pi.model.PiPipeconfId pipeconfId)org.onosproject.net.pi.model.PiPipeconfIdgetPipeconfId(org.onosproject.net.DeviceId deviceId)voidremoveBinding(org.onosproject.net.DeviceId deviceId)-
Methods inherited from class org.onosproject.store.AbstractStore
hasDelegate, notifyDelegate, notifyDelegate, 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
-
-
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:
getPipeconfIdin interfaceorg.onosproject.net.pi.service.PiPipeconfMappingStore
-
getDevices
public java.util.Set<org.onosproject.net.DeviceId> getDevices(org.onosproject.net.pi.model.PiPipeconfId pipeconfId)
- Specified by:
getDevicesin interfaceorg.onosproject.net.pi.service.PiPipeconfMappingStore
-
createOrUpdateBinding
public void createOrUpdateBinding(org.onosproject.net.DeviceId deviceId, org.onosproject.net.pi.model.PiPipeconfId pipeconfId)- Specified by:
createOrUpdateBindingin interfaceorg.onosproject.net.pi.service.PiPipeconfMappingStore
-
removeBinding
public void removeBinding(org.onosproject.net.DeviceId deviceId)
- Specified by:
removeBindingin interfaceorg.onosproject.net.pi.service.PiPipeconfMappingStore
-
-