public class FlowsListCommand extends AbstractShellCommand
Constructor and Description |
---|
FlowsListCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
Executes this 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, 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
public 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