public final class ClearPathPolicyTask extends AbstractTxTask<VtnUpdateType> implements RpcOutputGenerator<VtnUpdateType,ClearPathPolicyOutput>
ClearPathPolicyTask describes the MD-SAL datastore transaction task
that clears the path policy container.| Constructor and Description |
|---|
ClearPathPolicyTask() |
| Modifier and Type | Method and Description |
|---|---|
ClearPathPolicyOutput |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
protected VtnUpdateType |
execute(TxContext ctx)
Clear the root container of the path policy.
|
Class<ClearPathPolicyOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
void |
onSuccess(VTNManagerProvider provider,
VtnUpdateType result)
Invoked when the task has completed successfully.
|
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAsync, needErrorLogprotected VtnUpdateType execute(TxContext ctx) throws VTNException
execute in class AbstractTxTask<VtnUpdateType>ctx - A runtime context for transaction task.VtnUpdateType.REMOVED if at least one path policy has
been removed. null is returned if no path policy is
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<ClearPathPolicyOutput> getOutputType()
getOutputType in interface RpcOutputGenerator<VtnUpdateType,ClearPathPolicyOutput>public ClearPathPolicyOutput createOutput(VtnUpdateType result)
createOutput in interface RpcOutputGenerator<VtnUpdateType,ClearPathPolicyOutput>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.