Class DevicePortsListCommand

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, CodecContext

    public class DevicePortsListCommand
    extends DevicesListCommand
    Lists all ports or all ports of a device.
    • Field Detail

      • uri

        protected java.lang.String uri
    • Constructor Detail

      • DevicePortsListCommand

        public DevicePortsListCommand()
    • Method Detail

      • jsonPorts

        public com.fasterxml.jackson.databind.JsonNode jsonPorts​(DeviceService service,
                                                                 java.lang.Iterable<Device> devices)
        Produces JSON array containing ports of the specified devices.
        Parameters:
        service - device service
        devices - collection of devices
        Returns:
        JSON array
      • jsonPorts

        public 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.
        Parameters:
        service - device service
        mapper - object mapper
        device - infrastructure devices
        Returns:
        JSON array
      • isIncluded

        protected boolean isIncluded​(Port port)