@Service
public class DistributedDevicePipeconfMappingStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.pi.runtime.PiPipeconfDeviceMappingEvent,org.onosproject.net.pi.runtime.PiPipeconfMappingStoreDelegate>
implements org.onosproject.net.pi.runtime.PiPipeconfMappingStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.service.EventuallyConsistentMap<org.onosproject.net.DeviceId,org.onosproject.net.pi.model.PiPipeconfId> |
deviceToPipeconf |
protected org.onosproject.store.service.EventuallyConsistentMapListener<org.onosproject.net.DeviceId,org.onosproject.net.pi.model.PiPipeconfId> |
pipeconfListener |
protected java.util.concurrent.ConcurrentMap<org.onosproject.net.pi.model.PiPipeconfId,java.util.Set<org.onosproject.net.DeviceId>> |
pipeconfToDevices |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedDevicePipeconfMappingStore() |
| Modifier and Type | Method and 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) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
protected org.onosproject.store.service.EventuallyConsistentMap<org.onosproject.net.DeviceId,org.onosproject.net.pi.model.PiPipeconfId> deviceToPipeconf
protected final org.onosproject.store.service.EventuallyConsistentMapListener<org.onosproject.net.DeviceId,org.onosproject.net.pi.model.PiPipeconfId> pipeconfListener
protected java.util.concurrent.ConcurrentMap<org.onosproject.net.pi.model.PiPipeconfId,java.util.Set<org.onosproject.net.DeviceId>> pipeconfToDevices
public DistributedDevicePipeconfMappingStore()
@Activate public void activate()
@Deactivate public void deactivate()
public org.onosproject.net.pi.model.PiPipeconfId getPipeconfId(org.onosproject.net.DeviceId deviceId)
getPipeconfId in interface org.onosproject.net.pi.runtime.PiPipeconfMappingStorepublic java.util.Set<org.onosproject.net.DeviceId> getDevices(org.onosproject.net.pi.model.PiPipeconfId pipeconfId)
getDevices in interface org.onosproject.net.pi.runtime.PiPipeconfMappingStorepublic void createOrUpdateBinding(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.pi.model.PiPipeconfId pipeconfId)
createOrUpdateBinding in interface org.onosproject.net.pi.runtime.PiPipeconfMappingStorepublic void removeBinding(org.onosproject.net.DeviceId deviceId)
removeBinding in interface org.onosproject.net.pi.runtime.PiPipeconfMappingStore