public final class RemoveFlowConditionTask extends DeleteDataTask<VtnFlowCondition> implements RpcOutputGenerator<VtnUpdateType,Void>
RemoveFlowConditionTask describes the MD-SAL datastore transaction
task that deletes the specified flow condition configuration.create(RemoveFlowConditionInput)| Modifier and Type | Method and Description |
|---|---|
static RemoveFlowConditionTask |
create(RemoveFlowConditionInput input)
Create a new task that removes the specified flow condition.
|
Void |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
Class<Void> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
protected void |
onStarted(TxContext ctx,
VtnFlowCondition current)
Invoked when the MD-SAL datastore transaction has started.
|
void |
onSuccess(VTNManagerProvider provider,
VtnUpdateType result)
Invoked when the task has completed successfully.
|
execute, onDeletedgetDatastoreType, getTargetPathneedErrorLogaddBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailurepublic static RemoveFlowConditionTask create(RemoveFlowConditionInput input) throws RpcException
input - A RemoveFlowConditionInput instance.RemoveFlowConditionTask associated with the task that
removes the given flow condition.RpcException - The given input contains invalid value.protected void onStarted(TxContext ctx, VtnFlowCondition current) throws VTNException
onStarted in class DeleteDataTask<VtnFlowCondition>ctx - A runtime context for transaction task.current - The current value at the target path in the MD-SAL
datastore. Note that null is passed if the
target data is not present.VTNException - An error occurred.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<Void> getOutputType()
getOutputType in interface RpcOutputGenerator<VtnUpdateType,Void>public Void createOutput(VtnUpdateType result)
createOutput in interface RpcOutputGenerator<VtnUpdateType,Void>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.