public final class DeleteFlowTxTask extends AbstractTxTask<RemovedFlows>
PutFlowTxTask describes the MD-SAL datastore transaction task that
uninstalls VTN data flows.
This task returns a list of VTN data flows to be removed.
| Constructor and Description |
|---|
DeleteFlowTxTask(FlowRemoveContext ctx)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
RemovedFlows |
execute(TxContext ctx)
Modify the MD-SAL datastore using the given transaction.
|
void |
onFailure(VTNManagerProvider provider,
Throwable t)
Invoked when the task has failed.
|
void |
onSuccess(VTNManagerProvider provider,
RemovedFlows removed)
Invoked when the task has completed successfully.
|
addBackgroundTask, execute, getBackgroundTasks, getMaxRetryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAsync, needErrorLogpublic DeleteFlowTxTask(FlowRemoveContext ctx)
ctx - A FlowRemoveContext instance.public RemovedFlows execute(TxContext ctx) throws VTNException
Note that this method may be called more than once when a MD-SAL datastore transaction is aborted due to data conflict.
execute in class AbstractTxTask<RemovedFlows>ctx - A runtime context for transaction task.VTNException - An error occurred.public void onSuccess(VTNManagerProvider provider, RemovedFlows removed)
onSuccess in interface TxTask<RemovedFlows>onSuccess in class AbstractTxTask<RemovedFlows>provider - VTN Manager provider service.removed - A RemovedFlows instance which specifies flow
entries to be removed.public void onFailure(VTNManagerProvider provider, Throwable t)
onFailure in interface TxTask<RemovedFlows>onFailure in class AbstractTxTask<RemovedFlows>provider - VTN Manager provider service.t - A Throwable thrown by the task.Copyright © 2018 OpenDaylight. All rights reserved.