public class FlowsListCommand extends AbstractShellCommand
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY |
log| Constructor and Description |
|---|
FlowsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Body of the shell command.
|
protected SortedMap<Device,List<FlowEntry>> |
getSortedFlows(DeviceService deviceService,
FlowRuleService service,
CoreService coreService)
Returns the list of devices sorted using the device ID URIs.
|
protected void |
printFlows(Device d,
List<FlowEntry> flows,
CoreService coreService)
Prints flows.
|
void |
removeFlowsInteractive(Iterable<FlowEntry> flows,
FlowRuleService flowService,
CoreService coreService)
Removes the flows passed as argument after confirmation is provided
for each of them.
|
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, printclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, encodepublic static final String ANY
protected void doExecute()
AbstractShellCommanddoExecute in class AbstractShellCommandpublic void removeFlowsInteractive(Iterable<FlowEntry> flows, FlowRuleService flowService, CoreService coreService)
flows - list of flows to removeflowService - FlowRuleService objectcoreService - CoreService objectprotected SortedMap<Device,List<FlowEntry>> getSortedFlows(DeviceService deviceService, FlowRuleService service, CoreService coreService)
deviceService - device serviceservice - flow rule servicecoreService - core serviceprotected void printFlows(Device d, List<FlowEntry> flows, CoreService coreService)
d - the deviceflows - the set of flows for that devicecoreService - core system service