public final class ClearMacEntryTask extends AbstractRpcTask<List<RemoveMacEntryResult>> implements RpcOutputGenerator<List<RemoveMacEntryResult>,RemoveMacEntryOutput>
ClearMacEntryTask
describes the MD-SAL datastore transaction task
that removes all the MAC addresses learned by the specified vBridge.Modifier and Type | Method and Description |
---|---|
RemoveMacEntryOutput |
createOutput(List<RemoveMacEntryResult> result)
Generate the output of the RPC request.
|
protected List<RemoveMacEntryResult> |
execute(TxContext ctx)
Clear the specified MAC address table.
|
Class<RemoveMacEntryOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
needErrorLog
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailure, onSuccess
protected List<RemoveMacEntryResult> execute(TxContext ctx) throws VTNException
execute
in class AbstractTxTask<List<RemoveMacEntryResult>>
ctx
- A runtime context for transaction task.RemoveMacEntryResult
instances that contains
all the removed MAC addresses.
null
if the specified MAC address table is empty.VTNException
- An error occurred.public Class<RemoveMacEntryOutput> getOutputType()
getOutputType
in interface RpcOutputGenerator<List<RemoveMacEntryResult>,RemoveMacEntryOutput>
public RemoveMacEntryOutput createOutput(List<RemoveMacEntryResult> result)
createOutput
in interface RpcOutputGenerator<List<RemoveMacEntryResult>,RemoveMacEntryOutput>
result
- The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.