public class TableStatisticsCommand extends AbstractShellCommand
log| Constructor and Description |
|---|
TableStatisticsCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Body of the shell command.
|
protected SortedMap<org.onosproject.net.Device,List<org.onosproject.net.flow.TableStatisticsEntry>> |
getSortedTableStats(org.onosproject.net.device.DeviceService deviceService,
org.onosproject.net.flow.FlowRuleService flowService)
Returns the list of table statistics sorted using the device ID URIs and table IDs.
|
protected void |
printTableStats(org.onosproject.net.Device d,
List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
Prints flow table statistics.
|
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, printprotected void doExecute()
AbstractShellCommanddoExecute in class AbstractShellCommandprotected void printTableStats(org.onosproject.net.Device d,
List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
d - the devicetableStats - the set of flow table statistics for that deviceprotected SortedMap<org.onosproject.net.Device,List<org.onosproject.net.flow.TableStatisticsEntry>> getSortedTableStats(org.onosproject.net.device.DeviceService deviceService, org.onosproject.net.flow.FlowRuleService flowService)
deviceService - device serviceflowService - flow rule service