public final class SetPathPolicyTask extends PutDataTask<VtnPathPolicy> implements RpcOutputGenerator<VtnUpdateType,SetPathPolicyOutput>
SetPathPolicyTask describes the MD-SAL transaction task that
creates or updates the specified path policy configuration.| Modifier and Type | Method and Description |
|---|---|
static SetPathPolicyTask |
create(org.opendaylight.vtn.manager.internal.routing.TopologyGraph topo,
SetPathPolicyInput input)
Construct a new task that creates or updates the specified path policy
configuration.
|
SetPathPolicyOutput |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
protected boolean |
fixMissingParents()
Determine whether missing parent nodes should be created or not.
|
Class<SetPathPolicyOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
protected void |
onStarted(TxContext ctx,
VtnPathPolicy 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 SetPathPolicyTask create(org.opendaylight.vtn.manager.internal.routing.TopologyGraph topo, SetPathPolicyInput input) throws RpcException
topo - The network topology graph.input - A SetPathPolicyInput instance.SetPathPolicyTask instance associated with the task
that set the given path policy 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 path policy if missing.
fixMissingParents in class PutDataTask<VtnPathPolicy>true.protected void onStarted(TxContext ctx, VtnPathPolicy current) throws VTNException
onStarted in class PutDataTask<VtnPathPolicy>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<SetPathPolicyOutput> getOutputType()
getOutputType in interface RpcOutputGenerator<VtnUpdateType,SetPathPolicyOutput>public SetPathPolicyOutput createOutput(VtnUpdateType result)
createOutput in interface RpcOutputGenerator<VtnUpdateType,SetPathPolicyOutput>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.