Package org.onosproject.cli.net
Class DevicesListCommand
- java.lang.Object
- 
- org.onosproject.cli.AbstractShellCommand
- 
- org.onosproject.cli.net.DevicesListCommand
 
 
- 
- All Implemented Interfaces:
- org.apache.karaf.shell.api.action.Action,- CodecContext
 - Direct Known Subclasses:
- DeviceInterfacesListCommand,- DevicePortsListCommand
 
 public class DevicesListCommand extends AbstractShellCommand Lists all infrastructure devices.
- 
- 
Field Summary- 
Fields inherited from class org.onosproject.cli.AbstractShellCommandlog
 
- 
 - 
Constructor SummaryConstructors Constructor Description DevicesListCommand()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()Body of the shell command.static List<Device>getSortedDevices(DeviceService service)Returns the list of devices sorted using the device ID URIs.protected voidprintDevice(DeviceService deviceService, Device device)Prints information about the specified device.- 
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
 
 - 
getSortedDevicespublic static List<Device> getSortedDevices(DeviceService service) Returns the list of devices sorted using the device ID URIs.- Parameters:
- service- device service
- Returns:
- sorted device list
 
 - 
printDeviceprotected void printDevice(DeviceService deviceService, Device device) Prints information about the specified device.- Parameters:
- deviceService- device service
- device- infrastructure device
 
 
- 
 
-