public class VirtualFlowsListCommand extends AbstractShellCommand
Constructor and Description |
---|
VirtualFlowsListCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
Executes this command.
|
protected SortedMap<Device,List<FlowEntry>> |
getSortedFlows(DeviceService deviceService,
FlowRuleService service)
Returns the list of devices sorted using the device ID URIs.
|
protected void |
printFlows(Device d,
List<FlowEntry> flows,
CoreService coreService)
Prints flows.
|
annotations, annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, print
checkInterrupted, execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode
public static final String ANY
protected void execute()
AbstractShellCommand
execute
in class AbstractShellCommand
protected SortedMap<Device,List<FlowEntry>> getSortedFlows(DeviceService deviceService, FlowRuleService service)
deviceService
- device serviceservice
- flow rule serviceprotected void printFlows(Device d, List<FlowEntry> flows, CoreService coreService)
d
- the deviceflows
- the set of flows for that devicecoreService
- core system service