Class RemoteCliShell


  • public class RemoteCliShell
    extends ACliShell
    A remote shell is backed by an internal client service to which the commands are forwarded.
    • Field Detail

      • cliser

        protected IInternalCliService cliser
        The client service used to delegate commands to.
    • Constructor Detail

      • RemoteCliShell

        public RemoteCliShell​(IInternalCliService cliser,
                              Tuple2<java.lang.String,​java.lang.Integer> sessionid)
        Create a new remote shell.
    • Method Detail

      • executeCommand

        public IFuture<java.lang.String> executeCommand​(java.lang.String line)
        Description copied from class: ACliShell
        Execute a command line command and get back the results.
        Specified by:
        executeCommand in class ACliShell
        Returns:
        The result of the command.
      • internalGetShellPrompt

        public IFuture<java.lang.String> internalGetShellPrompt()
        Get the complete prompt (internal method). Calls subshells getPrompt().
        Specified by:
        internalGetShellPrompt in class ACliShell
        Returns:
        the complete prompt;
      • addAllCommandsFromClassPath

        public IFuture<java.lang.Void> addAllCommandsFromClassPath()
        Add all commands from classpath.
        Specified by:
        addAllCommandsFromClassPath in class ACliShell
        Parameters:
        cl - The classloader to use.
      • getCommands

        public java.util.Map<java.lang.String,​ICliCommand> getCommands()
        Get the commands.
        Specified by:
        getCommands in class ACliShell
        Returns:
        The commands.