public class DevicePortStatsCommand extends DevicesListCommand
| Constructor and Description |
|---|
DevicePortStatsCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
static String |
humanReadable(long bytes)
Converts bytes to human readable string with Kilo, Mega, Giga, etc.
|
static String |
humanReadableBps(float bps)
Converts bps to human readable format.
|
getSortedDevices, printDeviceannotations, annotations, appId, codec, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, printprotected void execute()
AbstractShellCommandexecute in class DevicesListCommandpublic static String humanReadable(long bytes)
bytes - input byte arraypublic static String humanReadableBps(float bps)
bps - input rateCopyright © 2015. All rights reserved.