public final class SetFlowConditionTask extends PutDataTask<VtnFlowCondition> implements RpcOutputGenerator<VtnUpdateType,SetFlowConditionOutput>
SetFlowConditionTask describes the MD-SAL datastore transaction
task that creates or updates the specified flow condition configuration.create(SetFlowConditionInput)| Modifier and Type | Method and Description |
|---|---|
static SetFlowConditionTask |
create(SetFlowConditionInput input)
Construct a new task that creates or updates the specified flow
condition configuration.
|
SetFlowConditionOutput |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
protected boolean |
fixMissingParents()
Determine whether missing parent nodes should be created or not.
|
Class<SetFlowConditionOutput> |
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, getDataObject, setDataObjectgetDatastoreType, getTargetPathneedErrorLogaddBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailurepublic static SetFlowConditionTask create(SetFlowConditionInput input) throws RpcException
input - A SetFlowConditionInput instance.SetFlowConditionTask instance associated with the
task that set the given flow condition configuration.RpcException - The given input contains invalid value.protected boolean fixMissingParents()
This method always return true in order to create the root container for the flow condition if missing.
fixMissingParents in class PutDataTask<VtnFlowCondition>true.protected void onStarted(TxContext ctx, VtnFlowCondition current) throws VTNException
onStarted in class PutDataTask<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<SetFlowConditionOutput> getOutputType()
getOutputType in interface RpcOutputGenerator<VtnUpdateType,SetFlowConditionOutput>public SetFlowConditionOutput createOutput(VtnUpdateType result)
createOutput in interface RpcOutputGenerator<VtnUpdateType,SetFlowConditionOutput>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.