public final class RemovePathPolicyTask extends DeleteDataTask<VtnPathPolicy> implements RpcOutputGenerator<VtnUpdateType,Void>
RemovePathPolicyTask
describes the MD-SAL transaction task that
deletes the specified path policy configuration.Modifier and Type | Method and Description |
---|---|
static RemovePathPolicyTask |
create(org.opendaylight.vtn.manager.internal.routing.TopologyGraph topo,
RemovePathPolicyInput input)
Create a new task that removes the specified path policy.
|
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,
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, onDeleted
getDatastoreType, getTargetPath
needErrorLog
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailure
public static RemovePathPolicyTask create(org.opendaylight.vtn.manager.internal.routing.TopologyGraph topo, RemovePathPolicyInput input) throws RpcException
topo
- The network topology graph.input
- A RemovePathPolicyInput
instance.RemovePathPolicyTask
associated with the task that
removes the given path policy.RpcException
- The given input contains invalid value.protected void onStarted(TxContext ctx, VtnPathPolicy current) throws VTNException
onStarted
in class DeleteDataTask<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<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.