public class TableStatisticsCommand extends AbstractShellCommand
| Constructor and Description |
|---|
TableStatisticsCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
protected java.util.SortedMap<org.onosproject.net.Device,java.util.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,
java.util.List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
Prints flow table statistics.
|
annotations, annotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printcheckInterrupted, executeprotected void execute()
AbstractShellCommandexecute in class AbstractShellCommandprotected void printTableStats(org.onosproject.net.Device d,
java.util.List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
d - the devicetableStats - the set of flow table statistics for that deviceprotected java.util.SortedMap<org.onosproject.net.Device,java.util.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