T - The type of the flow index.public abstract class TenantIndexFlowRemover<T extends FlowIdSet> extends Object implements FlowRemover
FlowRemover which removes VTN data flows
in the specified VTN using flow index.| Modifier | Constructor and Description |
|---|---|
protected |
TenantIndexFlowRemover(String tname)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> |
getPath(VtnFlowTableKey key)
Return the path to the flow index to be removed.
|
String |
getTenantName()
Return the name of the target VTN.
|
RemovedDataFlows<TenantIndexFlowRemover<T>> |
removeDataFlow(TxContext ctx)
Remove VTN data flows from the MD-SAL datastore.
|
protected abstract boolean |
select(FlowCache fc)
Determine whether the given data flow should be removed or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptionprotected TenantIndexFlowRemover(String tname)
tname - The name of the target VTN.public final String getTenantName()
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> getPath(VtnFlowTableKey key)
key - A VtnFlowTableKey instance which specifies the
target VTN flow table.protected abstract boolean select(FlowCache fc) throws VTNException
fc - A FlowCache instance.true if the given data flow should be removed.
Otherwise false.VTNException - An error occurred.public final RemovedDataFlows<TenantIndexFlowRemover<T>> removeDataFlow(TxContext ctx) throws VTNException
removeDataFlow in interface FlowRemoverctx - A runtime context for transaction task.RemovedFlows instance which represents removed flow
entries.VTNException - An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.