public final class RemoveVlanMapTask extends CompositeTxTask<VtnUpdateType,DeleteVlanMapTask> implements RpcOutputGenerator<List<VtnUpdateType>,RemoveVlanMapOutput>
RemoveVlanMapTask
describes the MD-SAL datastore transaction task
that removes all the specified VLAN mappings from the specified vBridge.create(VBridgeIdentifier, List)
Modifier and Type | Method and Description |
---|---|
static RemoveVlanMapTask |
create(VBridgeIdentifier ident,
List<String> ids)
Construct a new task that removes all the specified VLAN mappings from
the specified vBridge.
|
RemoveVlanMapOutput |
createOutput(List<VtnUpdateType> result)
Generate the output of the RPC request.
|
Class<RemoveVlanMapOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
protected void |
onCompleted(TxContext ctx,
List<VtnUpdateType> results)
Invoked when all the sub tasks have completed.
|
protected void |
onStarted(TxContext ctx)
Invoked when the MD-SAL datastore transaction has started.
|
execute, getSubTasks, needErrorLog, onFailure, onSuccess
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry
public static RemoveVlanMapTask create(VBridgeIdentifier ident, List<String> ids) throws RpcException
ident
- A VBridgeIdentifier
instance that specifies the
target vBridge.ids
- A list of VLAN mappings IDs to be removed.
The caller must ensure that the list is not empty.RemoveVlanMapTask
instance associated with the task
that removes all the given VLAN mappings from the specified
vBridge.RpcException
- An error occurred.protected void onStarted(TxContext ctx) throws VTNException
onStarted
in class CompositeTxTask<VtnUpdateType,DeleteVlanMapTask>
ctx
- A runtime context for transaction task.VTNException
- An error occurred.protected void onCompleted(TxContext ctx, List<VtnUpdateType> results) throws VTNException
onCompleted
in class CompositeTxTask<VtnUpdateType,DeleteVlanMapTask>
ctx
- A runtime context for transaction task.results
- A list of sub task results.VTNException
- An error occurred.public Class<RemoveVlanMapOutput> getOutputType()
getOutputType
in interface RpcOutputGenerator<List<VtnUpdateType>,RemoveVlanMapOutput>
public RemoveVlanMapOutput createOutput(List<VtnUpdateType> result)
createOutput
in interface RpcOutputGenerator<List<VtnUpdateType>,RemoveVlanMapOutput>
result
- The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.