Package org.onosproject.net.pi.service
Interface PiPipeconfMappingStore
-
- All Superinterfaces:
Store<PiPipeconfDeviceMappingEvent,PiPipeconfMappingStoreDelegate>
@Beta public interface PiPipeconfMappingStore extends Store<PiPipeconfDeviceMappingEvent,PiPipeconfMappingStoreDelegate>
Manages the mapping of Pipeconfs that are deployed to devices; not intended for direct use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateOrUpdateBinding(DeviceId deviceId, PiPipeconfId pipeconfId)Stores or updates a binding between a device and the pipeconf deployed on it.Set<DeviceId>getDevices(PiPipeconfId pipeconfId)Retrieves the set of devices on which the given pipeconf is applied.PiPipeconfIdgetPipeconfId(DeviceId deviceId)Retrieves the id of the pipeconf associated to a given device.voidremoveBinding(DeviceId deviceId)Removes device to pipeconf binding.-
Methods inherited from interface org.onosproject.store.Store
hasDelegate, setDelegate, unsetDelegate
-
-
-
-
Method Detail
-
getPipeconfId
PiPipeconfId getPipeconfId(DeviceId deviceId)
Retrieves the id of the pipeconf associated to a given device.- Parameters:
deviceId- device identifier- Returns:
- PiPipeconfId
-
getDevices
Set<DeviceId> getDevices(PiPipeconfId pipeconfId)
Retrieves the set of devices on which the given pipeconf is applied.- Parameters:
pipeconfId- pipeconf identifier- Returns:
- the set of devices that have that pipeconf applied.
-
createOrUpdateBinding
void createOrUpdateBinding(DeviceId deviceId, PiPipeconfId pipeconfId)
Stores or updates a binding between a device and the pipeconf deployed on it.- Parameters:
deviceId- deviceIdpipeconfId- pipeconfId
-
removeBinding
void removeBinding(DeviceId deviceId)
Removes device to pipeconf binding.- Parameters:
deviceId- deviceId
-
-