T
- The type of MD-SAL datastore transaction task that updates
path map configuration.O
- The type of the output of the RPC.public abstract class PathMapTask<T extends AbstractTxTask<VtnUpdateType>,O> extends CompositeTxTask<VtnUpdateType,T> implements RpcOutputGenerator<List<VtnUpdateType>,O>
Modifier | Constructor and Description |
---|---|
protected |
PathMapTask(VTenantIdentifier ident,
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, onFailure
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createOutput, getOutputType
protected PathMapTask(VTenantIdentifier ident, List<T> tasks)
ident
- The identifier for the target VTN.
null
means that the global path map is targeted.tasks
- A list of tasks that update path map 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.