public class DevicePortsListCommand extends DevicesListCommand
| Constructor and Description |
|---|
DevicePortsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Executes this command.
|
com.fasterxml.jackson.databind.JsonNode |
jsonPorts(org.onosproject.net.device.DeviceService service,
Iterable<org.onosproject.net.Device> devices)
Produces JSON array containing ports of the specified devices.
|
com.fasterxml.jackson.databind.JsonNode |
jsonPorts(org.onosproject.net.device.DeviceService service,
com.fasterxml.jackson.databind.ObjectMapper mapper,
org.onosproject.net.Device device)
Produces JSON array containing ports of the specified device.
|
protected void |
printDevice(org.onosproject.net.device.DeviceService service,
org.onosproject.net.Device device)
Prints information about the specified device.
|
getSortedDevices, json, jsonannotations, annotations, appId, doExecute, error, get, outputJson, printprotected void execute()
AbstractShellCommandexecute in class DevicesListCommandpublic com.fasterxml.jackson.databind.JsonNode jsonPorts(org.onosproject.net.device.DeviceService service,
Iterable<org.onosproject.net.Device> devices)
service - device servicedevices - collection of devicespublic com.fasterxml.jackson.databind.JsonNode jsonPorts(org.onosproject.net.device.DeviceService service,
com.fasterxml.jackson.databind.ObjectMapper mapper,
org.onosproject.net.Device device)
service - device servicemapper - object mapperdevice - infrastructure devicesprotected void printDevice(org.onosproject.net.device.DeviceService service,
org.onosproject.net.Device device)
DevicesListCommandprintDevice in class DevicesListCommandservice - device servicedevice - infrastructure deviceCopyright © 2015. All rights reserved.