@ThreadSafe public class DeviceFlowRegistryImpl extends Object implements DeviceFlowRegistry
| Constructor and Description |
|---|
DeviceFlowRegistryImpl(short version,
org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey> instanceIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMark(FlowRegistryKey flowRegistryKey)
Add mark for specified KEY.
|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<List<com.google.common.base.Optional<FlowCapableNode>>> |
fill() |
void |
forEach(Consumer<FlowRegistryKey> consumer)
Iterate over all keys in device registry.
|
void |
processMarks()
Process marked keys.
|
FlowDescriptor |
retrieveDescriptor(FlowRegistryKey flowRegistryKey) |
int |
size()
Get device registry size.
|
void |
store(FlowRegistryKey flowRegistryKey)
Store KEY in device registry.
|
void |
storeDescriptor(FlowRegistryKey flowRegistryKey,
FlowDescriptor flowDescriptor) |
public DeviceFlowRegistryImpl(short version,
org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node,org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey> instanceIdentifier)
public com.google.common.util.concurrent.ListenableFuture<List<com.google.common.base.Optional<FlowCapableNode>>> fill()
fill in interface DeviceFlowRegistrypublic FlowDescriptor retrieveDescriptor(@Nonnull FlowRegistryKey flowRegistryKey)
retrieveDescriptor in interface DeviceFlowRegistrypublic void storeDescriptor(@Nonnull FlowRegistryKey flowRegistryKey, @Nonnull FlowDescriptor flowDescriptor)
storeDescriptor in interface DeviceFlowRegistrypublic void store(FlowRegistryKey flowRegistryKey)
CommonDeviceRegistrystore in interface CommonDeviceRegistry<FlowRegistryKey>flowRegistryKey - device registry keypublic void addMark(FlowRegistryKey flowRegistryKey)
CommonDeviceRegistryaddMark in interface CommonDeviceRegistry<FlowRegistryKey>flowRegistryKey - device registry keypublic void processMarks()
CommonDeviceRegistryprocessMarks in interface CommonDeviceRegistry<FlowRegistryKey>public void forEach(Consumer<FlowRegistryKey> consumer)
CommonDeviceRegistryforEach in interface CommonDeviceRegistry<FlowRegistryKey>consumer - key consumerpublic int size()
CommonDeviceRegistrysize in interface CommonDeviceRegistry<FlowRegistryKey>public void close()
close in interface AutoCloseableclose in interface CommonDeviceRegistry<FlowRegistryKey>Copyright © 2019 OpenDaylight. All rights reserved.