Class HostsListCommand

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

    public class HostsListCommand
    extends AbstractShellCommand
    Lists all currently-known hosts.
    • Constructor Detail

      • HostsListCommand

        public HostsListCommand()
    • Method Detail

      • getSortedHosts

        protected java.util.List<Host> getSortedHosts​(HostService service)
        Returns the list of devices sorted using the device ID URIs.
        Parameters:
        service - device service
        Returns:
        sorted device list
      • printHost

        protected void printHost​(Host host)
        Prints information about a host.
        Parameters:
        host - end-station host