Package hudson

Class Proc.RemoteProc

    • Constructor Detail

      • RemoteProc

        public RemoteProc​(Future<Integer> process)
        Deprecated.
    • Method Detail

      • join

        public int join()
                 throws IOException,
                        InterruptedException
        Deprecated.
        Description copied from class: Proc
        Waits for the completion of the process. Unless the caller opts to pump the streams via Proc.getStdout() etc., this method also blocks until we finish reading everything that the process has produced to stdout/stderr.

        If the thread is interrupted while waiting for the completion of the process, this method terminates the process and exits with a non-zero exit code.

        Specified by:
        join in class Proc
        Throws:
        IOException - if there's an error launching/joining a process and a stack trace could help the trouble-shooting.
        InterruptedException
      • getStdout

        public InputStream getStdout()
        Deprecated.
        Description copied from class: Proc
        Returns an InputStream to read from stdout of the child process.

        When this method returns null, Proc will internally pump the output from the child process to your OutputStream of choosing.

        Specified by:
        getStdout in class Proc
        Returns:
        null unless Launcher.ProcStarter.readStdout() is used to indicate that the caller intends to pump the stream by itself.
      • getStderr

        public InputStream getStderr()
        Deprecated.
        Description copied from class: Proc
        Returns an InputStream to read from stderr of the child process.

        When this method returns null, Proc will internally pump the output from the child process to your OutputStream of choosing.

        Specified by:
        getStderr in class Proc
        Returns:
        null unless Launcher.ProcStarter.readStderr() is used to indicate that the caller intends to pump the stream by itself.