public class DevicePortsListCommand extends DevicesListCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
uri |
log| Constructor and Description |
|---|
DevicePortsListCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute()
Body of the shell command.
|
protected boolean |
isIncluded(Port port) |
com.fasterxml.jackson.databind.JsonNode |
jsonPorts(DeviceService service,
Iterable<Device> devices)
Produces JSON array containing ports of the specified devices.
|
com.fasterxml.jackson.databind.JsonNode |
jsonPorts(DeviceService service,
com.fasterxml.jackson.databind.ObjectMapper mapper,
Device device)
Produces JSON array containing ports of the specified device.
|
protected void |
printPorts(DeviceService service,
Device device) |
getSortedDevices, printDeviceannotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, printclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, encodeprotected String uri
protected void doExecute()
AbstractShellCommanddoExecute in class DevicesListCommandpublic com.fasterxml.jackson.databind.JsonNode jsonPorts(DeviceService service, Iterable<Device> devices)
service - device servicedevices - collection of devicespublic com.fasterxml.jackson.databind.JsonNode jsonPorts(DeviceService service, com.fasterxml.jackson.databind.ObjectMapper mapper, Device device)
service - device servicemapper - object mapperdevice - infrastructure devicesprotected boolean isIncluded(Port port)
protected void printPorts(DeviceService service, Device device)