Package org.onosproject.cli.net
Class TableStatisticsCommand
- java.lang.Object
- 
- org.onosproject.cli.AbstractShellCommand
- 
- org.onosproject.cli.net.TableStatisticsCommand
 
 
- 
- All Implemented Interfaces:
- org.apache.karaf.shell.api.action.Action,- CodecContext
 
 public class TableStatisticsCommand extends AbstractShellCommand Lists port statistic of all ports in the system.
- 
- 
Field Summary- 
Fields inherited from class org.onosproject.cli.AbstractShellCommandlog
 
- 
 - 
Constructor SummaryConstructors Constructor Description TableStatisticsCommand()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()Body of the shell command.protected java.util.SortedMap<Device,java.util.List<TableStatisticsEntry>>getSortedTableStats(DeviceService deviceService, FlowRuleService flowService)Returns the list of table statistics sorted using the device ID URIs and table IDs.protected voidprintTableStats(Device d, java.util.List<TableStatisticsEntry> tableStats)Prints flow table statistics.- 
Methods inherited from class org.onosproject.cli.AbstractShellCommandannotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.onosproject.codec.CodecContextdecode, encode
 
- 
 
- 
- 
- 
Method Detail- 
doExecuteprotected void doExecute() Description copied from class:AbstractShellCommandBody of the shell command.- Specified by:
- doExecutein class- AbstractShellCommand
 
 - 
printTableStatsprotected void printTableStats(Device d, java.util.List<TableStatisticsEntry> tableStats) Prints flow table statistics.- Parameters:
- d- the device
- tableStats- the set of flow table statistics for that device
 
 - 
getSortedTableStatsprotected java.util.SortedMap<Device,java.util.List<TableStatisticsEntry>> getSortedTableStats(DeviceService deviceService, FlowRuleService flowService) Returns the list of table statistics sorted using the device ID URIs and table IDs.- Parameters:
- deviceService- device service
- flowService- flow rule service
- Returns:
- sorted table statistics list
 
 
- 
 
-