Class DevicePortStatsCommand

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

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

      • DevicePortStatsCommand

        public DevicePortStatsCommand()
    • Method Detail

      • humanReadable

        public static java.lang.String humanReadable​(long bytes)
        Converts bytes to human readable string with Kilo, Mega, Giga, etc.
        Parameters:
        bytes - input byte array
        Returns:
        human readble string
      • humanReadableBps

        public static java.lang.String humanReadableBps​(float bps)
        Converts bps to human readable format.
        Parameters:
        bps - input rate
        Returns:
        human readble string