Class Process


  • public class Process
    extends Object
    A process managed by the shell.

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

    • Constructor Detail

      • Process

        public Process​(io.vertx.ext.shell.system.Process delegate)
      • Process

        public Process​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.shell.system.Process getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • status

        public io.vertx.ext.shell.system.ExecStatus status()
        Returns:
        the current process status
      • exitCode

        public Integer exitCode()
        Returns:
        the process exit code when the status is otherwise null
      • setTty

        public Process setTty​(Tty tty)
        Parameters:
        tty - the process tty
        Returns:
        this object
      • getTty

        public Tty getTty()
        Returns:
        the process tty
      • setSession

        public Process setSession​(Session session)
        Parameters:
        session - the process session
        Returns:
        this object
      • getSession

        public Session getSession()
        Returns:
        the process session
      • terminatedHandler

        public Process terminatedHandler​(Consumer<Integer> handler)
        Parameters:
        handler - the handler called when the process terminates.
        Returns:
      • run

        public void run()
      • run

        public void run​(boolean foregraound)
        Parameters:
        foregraound -
      • interrupt

        public boolean interrupt()
        Returns:
        true if the process caught the signal
      • interrupt

        public boolean interrupt​(Runnable completionHandler)
        Parameters:
        completionHandler - handler called after interrupt callback
        Returns:
      • resume

        public void resume()
      • resume

        public void resume​(boolean foreground)
        Parameters:
        foreground -
      • resume

        public void resume​(Runnable completionHandler)
        Parameters:
        completionHandler - handler called after resume callback
      • resume

        public void resume​(boolean foreground,
                           Runnable completionHandler)
        Parameters:
        foreground -
        completionHandler - handler called after resume callback
      • suspend

        public void suspend()
      • suspend

        public void suspend​(Runnable completionHandler)
        Parameters:
        completionHandler - handler called after suspend callback
      • terminate

        public void terminate()
      • terminate

        public void terminate​(Runnable completionHandler)
        Parameters:
        completionHandler - handler called after end callback
      • toBackground

        public void toBackground()
      • toBackground

        public void toBackground​(Runnable completionHandler)
        Parameters:
        completionHandler - handler called after background callback
      • toForeground

        public void toForeground()
      • toForeground

        public void toForeground​(Runnable completionHandler)
        Parameters:
        completionHandler - handler called after foreground callback
      • newInstance

        public static Process newInstance​(io.vertx.ext.shell.system.Process arg)