Interface IInternalCliService

  • All Superinterfaces:
    ICliService
    All Known Implementing Classes:
    CliAgent

    public interface IInternalCliService
    extends ICliService
    Internal cli service interface used by the implementation to redirect calls to remote shells.
    • Method Detail

      • internalGetShellPrompt

        IFuture<java.lang.String> internalGetShellPrompt​(Tuple2<java.lang.String,​java.lang.Integer> sessionid)
        Get the shell prompt.
        Parameters:
        sessionid - The session id.
        Returns:
        The prompt.
      • removeSubshell

        IFuture<java.lang.Boolean> removeSubshell​(Tuple2<java.lang.String,​java.lang.Integer> sessionid)
        Remove a subshell.
        Parameters:
        sessionid - The session id.
        Returns:
        True, if could be removed.
      • addAllCommandsFromClassPath

        IFuture<java.lang.Void> addAllCommandsFromClassPath​(Tuple2<java.lang.String,​java.lang.Integer> sessionid)
        Add all commands from classpath.
        Parameters:
        sessionid - The session id.
      • addCommand

        IFuture<java.lang.Void> addCommand​(ICliCommand cmd,
                                           Tuple2<java.lang.String,​java.lang.Integer> sessionid)
        Add a specific command.
        Parameters:
        sessionid - The session id.