T - The type of MD-SAL datastore transaction task that updates
path cost configuration.O - The type of the output of the RPC.public abstract class PathCostTask<T extends AbstractTxTask<VtnUpdateType>,O> extends CompositeTxTask<VtnUpdateType,T> implements RpcOutputGenerator<List<VtnUpdateType>,O>
| Modifier | Constructor and Description |
|---|---|
protected |
PathCostTask(org.opendaylight.vtn.manager.internal.routing.TopologyGraph topo,
Integer id,
List<T> tasks)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onStarted(TxContext ctx)
Invoked when the MD-SAL datastore transaction has started.
|
void |
onSuccess(VTNManagerProvider provider,
List<VtnUpdateType> result)
Invoked when the task has completed successfully.
|
execute, getSubTasks, needErrorLog, onCompleted, onFailureaddBackgroundTask, execute, getBackgroundTasks, getMaxRetryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateOutput, getOutputTypeprotected PathCostTask(org.opendaylight.vtn.manager.internal.routing.TopologyGraph topo,
Integer id,
List<T> tasks)
topo - The network topology graph.id - The identifier of the target path policy.tasks - A list of tasks that update link cost configuration.protected final void onStarted(TxContext ctx) throws VTNException
onStarted in class CompositeTxTask<VtnUpdateType,T extends AbstractTxTask<VtnUpdateType>>ctx - A runtime context for transaction task.VTNException - An error occurred.public final void onSuccess(VTNManagerProvider provider, List<VtnUpdateType> result)
This method of this class does nothing.
onSuccess in interface TxTask<List<VtnUpdateType>>onSuccess in class CompositeTxTask<VtnUpdateType,T extends AbstractTxTask<VtnUpdateType>>provider - VTN Manager provider service.result - An object returned by AbstractTxTask.execute(TxContext, int).Copyright © 2018 OpenDaylight. All rights reserved.