Class CommandProcess


  • public class CommandProcess
    extends Tty
    The command process provides interaction with the process of the command provided by Vert.x Shell.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • CommandProcess

        public CommandProcess​(io.vertx.ext.shell.command.CommandProcess delegate)
      • CommandProcess

        public CommandProcess​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.shell.command.CommandProcess getDelegate()
        Overrides:
        getDelegate in class Tty
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Tty
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Tty
      • vertx

        public Vertx vertx()
        Returns:
        the current Vert.x instance
      • argsTokens

        public List<CliToken> argsTokens()
        Returns:
        the unparsed arguments tokens
      • args

        public List<String> args()
        Returns:
        the actual string arguments of the command
      • commandLine

        public CommandLine commandLine()
        Returns:
        the command line object or null
      • session

        public Session session()
        Returns:
        the shell session
      • isForeground

        public boolean isForeground()
        Returns:
        true if the command is running in foreground
      • interruptHandler

        public CommandProcess interruptHandler​(Runnable handler)
        Parameters:
        handler - the interrupt handler
        Returns:
      • suspendHandler

        public CommandProcess suspendHandler​(Runnable handler)
        Parameters:
        handler - the interrupt handler
        Returns:
      • resumeHandler

        public CommandProcess resumeHandler​(Runnable handler)
        Parameters:
        handler - the interrupt handler
        Returns:
      • endHandler

        public CommandProcess endHandler​(Runnable handler)
        Parameters:
        handler - the end handler
        Returns:
      • write

        public CommandProcess write​(String data)
        Overrides:
        write in class Tty
        Parameters:
        data - the text
        Returns:
        a reference to this, so the API can be used fluently
      • backgroundHandler

        public CommandProcess backgroundHandler​(Runnable handler)
        Parameters:
        handler - the background handler
        Returns:
      • foregroundHandler

        public CommandProcess foregroundHandler​(Runnable handler)
        Parameters:
        handler - the foreground handler
        Returns:
      • end

        public void end()
      • end

        public void end​(int status)
        Parameters:
        status - the exit status.
      • newInstance

        public static CommandProcess newInstance​(io.vertx.ext.shell.command.CommandProcess arg)