Class TableStatisticsCommand

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, org.onosproject.codec.CodecContext

    public class TableStatisticsCommand
    extends AbstractShellCommand
    Lists port statistic of all ports in the system.
    • Constructor Detail

      • TableStatisticsCommand

        public TableStatisticsCommand()
    • Method Detail

      • printTableStats

        protected void printTableStats​(org.onosproject.net.Device d,
                                       List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
        Prints flow table statistics.
        Parameters:
        d - the device
        tableStats - the set of flow table statistics for that device
      • getSortedTableStats

        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.
        Parameters:
        deviceService - device service
        flowService - flow rule service
        Returns:
        sorted table statistics list