public class DevicePortsListCommand extends DevicesListCommand
Constructor and Description |
---|
DevicePortsListCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
Executes this 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, doExecute, error, get, getService, jsonForEntity, mapper, outputJson, print
checkInterrupted, execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode
protected String uri
protected void execute()
AbstractShellCommand
execute
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)