public final class ClearNodeFlowsTask extends RunnableVTNFuture<Void> implements StatsReaderCallback
ClearNodeFlowsTask describes a task which uninstalls VTN flow
entries present in the given switch.
This task will remove only flow entries installed by the VTN Manager, and will keep flow entries installed by another component. Note that this task never removes table miss flow entries from OF1.3 switches.
| Constructor and Description |
|---|
ClearNodeFlowsTask(VTNManagerProvider provider,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService sfs,
StatsReaderService srs,
SalNode snode,
VtnOpenflowVersion ofver)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flowStatsReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.FlowAndStatisticsMap fstats)
Invoked when a flow statistics information has been received.
|
void |
run()
Wait for all VTN flows in the target switch to be uninstalled.
|
void |
transactionCanceled()
Invoked when the transaction for reading flow statistics has been
canceled.
|
void |
transactionCompleted()
Invoked when the transaction for reading flow statistics has been
completed successfully.
|
cancel, get, get, isCancelled, isDone, maskCancel, onFutureFailed, onFutureSucceeded, set, setException, setThread, unmaskCanceladdListener, done, getCause, getExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckedGet, checkedGetpublic ClearNodeFlowsTask(VTNManagerProvider provider, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService sfs, StatsReaderService srs, SalNode snode, VtnOpenflowVersion ofver)
provider - VTN Manager provider service.sfs - The MD-SAL flow service.srs - Flow statistics reader service.snode - A SalNode instance which specifies the target
switch.ofver - A VtnOpenflowVersion instance which indicates
the OpenFlow protocol version.public void run()
public void flowStatsReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.FlowAndStatisticsMap fstats)
flowStatsReceived in interface StatsReaderCallbackfstats - A FlowAndStatisticsMap instance which contains
the flow statistics send by the switch.public void transactionCompleted()
transactionCompleted in interface StatsReaderCallbackpublic void transactionCanceled()
transactionCanceled in interface StatsReaderCallbackCopyright © 2018 OpenDaylight. All rights reserved.