@Service @Beta public class PiPipeconfManager extends Object implements org.onosproject.net.pi.runtime.PiPipeconfService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.config.NetworkConfigListener |
cfgListener |
protected org.onosproject.net.config.NetworkConfigRegistry |
cfgService |
protected ConcurrentHashMap<org.onosproject.net.DeviceId,org.onosproject.net.pi.model.PiPipeconfId> |
devicesToPipeconf |
protected org.onosproject.net.driver.DriverAdminService |
driverAdminService |
protected org.onosproject.net.driver.DriverService |
driverService |
protected ExecutorService |
executor |
protected org.onosproject.net.config.ConfigFactory |
factory |
protected ConcurrentHashMap<org.onosproject.net.pi.model.PiPipeconfId,org.onosproject.net.pi.model.PiPipeconf> |
piPipeconfs |
| Constructor and Description |
|---|
PiPipeconfManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
CompletableFuture<Boolean> |
bindToDevice(org.onosproject.net.pi.model.PiPipeconfId pipeconfId,
org.onosproject.net.DeviceId deviceId) |
void |
deactivate() |
Optional<org.onosproject.net.pi.model.PiPipeconf> |
getPipeconf(org.onosproject.net.pi.model.PiPipeconfId id) |
Iterable<org.onosproject.net.pi.model.PiPipeconf> |
getPipeconfs() |
Optional<org.onosproject.net.pi.model.PiPipeconfId> |
ofDevice(org.onosproject.net.DeviceId deviceId) |
void |
register(org.onosproject.net.pi.model.PiPipeconf pipeconf) |
void |
remove(org.onosproject.net.pi.model.PiPipeconfId pipeconfId) |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigRegistry cfgService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.driver.DriverService driverService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.driver.DriverAdminService driverAdminService
protected ConcurrentHashMap<org.onosproject.net.pi.model.PiPipeconfId,org.onosproject.net.pi.model.PiPipeconf> piPipeconfs
protected ConcurrentHashMap<org.onosproject.net.DeviceId,org.onosproject.net.pi.model.PiPipeconfId> devicesToPipeconf
protected ExecutorService executor
protected final org.onosproject.net.config.ConfigFactory factory
protected final org.onosproject.net.config.NetworkConfigListener cfgListener
@Activate public void activate()
@Deactivate public void deactivate()
public void register(org.onosproject.net.pi.model.PiPipeconf pipeconf)
throws IllegalStateException
register in interface org.onosproject.net.pi.runtime.PiPipeconfServiceIllegalStateExceptionpublic void remove(org.onosproject.net.pi.model.PiPipeconfId pipeconfId)
throws IllegalStateException
remove in interface org.onosproject.net.pi.runtime.PiPipeconfServiceIllegalStateExceptionpublic Iterable<org.onosproject.net.pi.model.PiPipeconf> getPipeconfs()
getPipeconfs in interface org.onosproject.net.pi.runtime.PiPipeconfServicepublic Optional<org.onosproject.net.pi.model.PiPipeconf> getPipeconf(org.onosproject.net.pi.model.PiPipeconfId id)
getPipeconf in interface org.onosproject.net.pi.runtime.PiPipeconfServicepublic CompletableFuture<Boolean> bindToDevice(org.onosproject.net.pi.model.PiPipeconfId pipeconfId, org.onosproject.net.DeviceId deviceId)
bindToDevice in interface org.onosproject.net.pi.runtime.PiPipeconfServicepublic Optional<org.onosproject.net.pi.model.PiPipeconfId> ofDevice(org.onosproject.net.DeviceId deviceId)
ofDevice in interface org.onosproject.net.pi.runtime.PiPipeconfService