public final class AddVlanMapTask extends AbstractRpcTask<VlanMap> implements RpcOutputGenerator<VlanMap,AddVlanMapOutput>
AddVlanMapTask describes the MD-SAL datastore transaction task
that adds a VLAN mapping to the specified vBridge.create(AddVlanMapInput)| Modifier and Type | Method and Description |
|---|---|
static AddVlanMapTask |
create(AddVlanMapInput input)
Construct a new task that adds a VLAN mapping to the specified vBridge.
|
AddVlanMapOutput |
createOutput(VlanMap result)
Generate the output of the RPC request.
|
protected VlanMap |
execute(TxContext ctx)
Add a VLAN mapping to the target vBridge.
|
Class<AddVlanMapOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
needErrorLogaddBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailure, onSuccesspublic static AddVlanMapTask create(AddVlanMapInput input) throws RpcException
input - An AddVlanMapInput instance.AddVlanMapTask instance associated with the task
that adds a VLAN mapping to the specified vBridge.RpcException - The given input contains invalid value.protected VlanMap execute(TxContext ctx) throws VTNException
execute in class AbstractTxTask<VlanMap>ctx - MD-SAL datastore transaction context.VlanMap instance.VTNException - An error occurred.public Class<AddVlanMapOutput> getOutputType()
getOutputType in interface RpcOutputGenerator<VlanMap,AddVlanMapOutput>public AddVlanMapOutput createOutput(VlanMap result)
createOutput in interface RpcOutputGenerator<VlanMap,AddVlanMapOutput>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.