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, print
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode
public static final String ANY
protected void doExecute()
AbstractShellCommand
doExecute
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