public final class ClearPathMapTask extends AbstractTxTask<VtnUpdateType> implements RpcOutputGenerator<VtnUpdateType,ClearPathMapOutput>
ClearPathMapTask describes the MD-SAL datastore transaction task
that clears the global or VTN path map configuration.create(ClearPathMapInput)| Modifier and Type | Method and Description |
|---|---|
static ClearPathMapTask |
create(ClearPathMapInput input)
Create a new task that clears the specified path map container.
|
ClearPathMapOutput |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
protected VtnUpdateType |
execute(TxContext ctx)
Clear the specified path map container.
|
Class<ClearPathMapOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
boolean |
needErrorLog(Throwable t)
Determine whether the transaction queue should log the given error
or not.
|
void |
onSuccess(VTNManagerProvider provider,
VtnUpdateType result)
Invoked when the task has completed successfully.
|
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailurepublic static ClearPathMapTask create(ClearPathMapInput input) throws RpcException
input - A ClearPathMapInput instance.ClearPathMapTask associated with the task that
clears the specified path map container.RpcException - The given input contains invalid value.protected 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 map has
been removed. null is returned if no path map is
present in the specified path map container.VTNException - An error occurred.public boolean needErrorLog(Throwable t)
This method returns false if a RpcException is
passed.
needErrorLog in interface TxTask<VtnUpdateType>t - A Throwable that is going to be thrown.true if the transaction queue should log the given
Throwable. Otherwise false.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<ClearPathMapOutput> getOutputType()
getOutputType in interface RpcOutputGenerator<VtnUpdateType,ClearPathMapOutput>public ClearPathMapOutput createOutput(VtnUpdateType result)
createOutput in interface RpcOutputGenerator<VtnUpdateType,ClearPathMapOutput>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.