public final class ClearFlowConditionTask extends AbstractTxTask<VtnUpdateType> implements RpcOutputGenerator<VtnUpdateType,ClearFlowConditionOutput>
ClearFlowConditionTask describes the MD-SAL datastore transaction
task that clears the flow condition container.| Constructor and Description |
|---|
ClearFlowConditionTask() |
| Modifier and Type | Method and Description |
|---|---|
ClearFlowConditionOutput |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
protected VtnUpdateType |
execute(TxContext ctx)
Clear the root container of the flow condition.
|
Class<ClearFlowConditionOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
boolean |
needErrorLog(Throwable t)
Determine whether the transaction queue should log the given error
or not.
|
void |
onSuccess(VTNManagerProvider provider,
VtnUpdateType result)
Invoked when the task has completed successfully.
|
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailureprotected VtnUpdateType execute(TxContext ctx) throws VTNException
execute in class AbstractTxTask<VtnUpdateType>ctx - A runtime context for transaction task.VtnUpdateType.REMOVED if at least one flow condition
has been removed. null is returned if no flow
condition is present.VTNException - An error occurred.public boolean needErrorLog(Throwable t)
This method returns false if a RpcException is
passed.
needErrorLog in interface TxTask<VtnUpdateType>t - A Throwable that is going to be thrown.true if the transaction queue should log the given
Throwable. Otherwise false.public void onSuccess(VTNManagerProvider provider, VtnUpdateType result)
This method of this class does nothing.
onSuccess in interface TxTask<VtnUpdateType>onSuccess in class AbstractTxTask<VtnUpdateType>provider - VTN Manager provider service.result - An object returned by AbstractTxTask.execute(TxContext, int).public Class<ClearFlowConditionOutput> getOutputType()
getOutputType in interface RpcOutputGenerator<VtnUpdateType,ClearFlowConditionOutput>public ClearFlowConditionOutput createOutput(VtnUpdateType result)
createOutput in interface RpcOutputGenerator<VtnUpdateType,ClearFlowConditionOutput>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.