public class FlowsListCommand extends AbstractShellCommand
| Constructor and Description |
|---|
FlowsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
protected SortedMap<org.onosproject.net.Device,List<org.onosproject.net.flow.FlowEntry>> |
getSortedFlows(org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.flow.FlowRuleService service)
Returns the list of devices sorted using the device ID URIs.
|
protected void |
printFlows(org.onosproject.net.Device d,
List<org.onosproject.net.flow.FlowEntry> flows,
org.onosproject.core.CoreService coreService)
Prints flows.
|
annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printpublic static final String ANY
protected void execute()
AbstractShellCommandexecute in class AbstractShellCommandprotected SortedMap<org.onosproject.net.Device,List<org.onosproject.net.flow.FlowEntry>> getSortedFlows(org.onosproject.net.device.DeviceService deviceService, org.onosproject.net.flow.FlowRuleService service)
deviceService - device serviceservice - flow rule serviceprotected void printFlows(org.onosproject.net.Device d,
List<org.onosproject.net.flow.FlowEntry> flows,
org.onosproject.core.CoreService coreService)
d - the deviceflows - the set of flows for that devicecoreService - core system serviceCopyright © 2015. All rights reserved.