Class DeviceFlowRegistryImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.registry.flow.DeviceFlowRegistryImpl
- All Implemented Interfaces:
AutoCloseable
,CommonDeviceRegistry<FlowRegistryKey>
,DeviceFlowRegistry
-
Constructor Summary
ConstructorDescriptionDeviceFlowRegistryImpl
(org.opendaylight.yangtools.yang.common.Uint8 version, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier, FlowGroupInfoHistoryAppender history) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMark
(FlowRegistryKey flowRegistryKey) Add mark for specified KEY.void
appendHistoryFlow
(FlowId id, org.opendaylight.yangtools.yang.common.Uint8 tableId, FlowGroupStatus status) void
void
close()
com.google.common.util.concurrent.ListenableFuture<List<Optional<FlowCapableNode>>>
fill()
void
forEach
(Consumer<FlowRegistryKey> consumer) Iterate over all keys in device registry.void
Process marked keys.retrieveDescriptor
(@NonNull FlowRegistryKey flowRegistryKey) int
size()
Get device registry size.void
store
(FlowRegistryKey flowRegistryKey) Store KEY in device registry.void
storeDescriptor
(@NonNull FlowRegistryKey flowRegistryKey, @NonNull FlowDescriptor flowDescriptor)
-
Constructor Details
-
DeviceFlowRegistryImpl
public DeviceFlowRegistryImpl(org.opendaylight.yangtools.yang.common.Uint8 version, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node, NodeKey> instanceIdentifier, FlowGroupInfoHistoryAppender history)
-
-
Method Details
-
createKey
- Specified by:
createKey
in interfaceDeviceFlowRegistry
-
fill
- Specified by:
fill
in interfaceDeviceFlowRegistry
-
retrieveDescriptor
- Specified by:
retrieveDescriptor
in interfaceDeviceFlowRegistry
-
storeDescriptor
public void storeDescriptor(@NonNull FlowRegistryKey flowRegistryKey, @NonNull FlowDescriptor flowDescriptor) - Specified by:
storeDescriptor
in interfaceDeviceFlowRegistry
-
store
Description copied from interface:CommonDeviceRegistry
Store KEY in device registry.- Specified by:
store
in interfaceCommonDeviceRegistry<FlowRegistryKey>
- Parameters:
flowRegistryKey
- device registry key
-
addMark
Description copied from interface:CommonDeviceRegistry
Add mark for specified KEY.- Specified by:
addMark
in interfaceCommonDeviceRegistry<FlowRegistryKey>
- Parameters:
flowRegistryKey
- device registry key
-
processMarks
public void processMarks()Description copied from interface:CommonDeviceRegistry
Process marked keys.- Specified by:
processMarks
in interfaceCommonDeviceRegistry<FlowRegistryKey>
-
forEach
Description copied from interface:CommonDeviceRegistry
Iterate over all keys in device registry.- Specified by:
forEach
in interfaceCommonDeviceRegistry<FlowRegistryKey>
- Parameters:
consumer
- key consumer
-
size
public int size()Description copied from interface:CommonDeviceRegistry
Get device registry size.- Specified by:
size
in interfaceCommonDeviceRegistry<FlowRegistryKey>
- Returns:
- device registry size
-
appendHistoryFlow
public void appendHistoryFlow(FlowId id, org.opendaylight.yangtools.yang.common.Uint8 tableId, FlowGroupStatus status) - Specified by:
appendHistoryFlow
in interfaceDeviceFlowRegistry
-
clearFlowRegistry
public void clearFlowRegistry()- Specified by:
clearFlowRegistry
in interfaceDeviceFlowRegistry
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCommonDeviceRegistry<FlowRegistryKey>
-