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, printDevice
annotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode
protected String uri
protected void doExecute()
AbstractShellCommand
doExecute
in class DevicesListCommand
public 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)