public class TableStatisticsCommand extends AbstractShellCommand
Constructor and Description |
---|
TableStatisticsCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
Executes this command.
|
protected SortedMap<Device,List<TableStatisticsEntry>> |
getSortedTableStats(DeviceService deviceService,
FlowRuleService flowService)
Returns the list of table statistics sorted using the device ID URIs and table IDs.
|
protected void |
printTableStats(Device d,
List<TableStatisticsEntry> tableStats)
Prints flow table statistics.
|
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
protected void execute()
AbstractShellCommand
execute
in class AbstractShellCommand
protected void printTableStats(Device d, List<TableStatisticsEntry> tableStats)
d
- the devicetableStats
- the set of flow table statistics for that deviceprotected SortedMap<Device,List<TableStatisticsEntry>> getSortedTableStats(DeviceService deviceService, FlowRuleService flowService)
deviceService
- device serviceflowService
- flow rule service