Package hudson
Class Proc.RemoteProc
- java.lang.Object
-
- hudson.Proc
-
- hudson.Proc.RemoteProc
-
- All Implemented Interfaces:
Proc.ProcWithJenkins23271Patch
- Enclosing class:
- Proc
@Deprecated public static final class Proc.RemoteProc extends Proc implements Proc.ProcWithJenkins23271Patch
Deprecated.as of 1.399. Replaced byLauncher.RemoteLauncher.ProcImpl
Remotely launched process viaChannel
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.Proc
Proc.LocalProc, Proc.ProcWithJenkins23271Patch, Proc.RemoteProc
-
-
Constructor Summary
Constructors Constructor Description RemoteProc(Future<Integer> process)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InputStream
getStderr()
Deprecated.Returns anInputStream
to read fromstderr
of the child process.OutputStream
getStdin()
Deprecated.Returns anOutputStream
to write tostdin
of the child process.InputStream
getStdout()
Deprecated.Returns anInputStream
to read fromstdout
of the child process.boolean
isAlive()
Deprecated.Checks if the process is still alive.int
join()
Deprecated.Waits for the completion of the process.void
kill()
Deprecated.Terminates the process.-
Methods inherited from class hudson.Proc
joinWithTimeout
-
-
-
-
Method Detail
-
kill
public void kill() throws IOException, InterruptedException
Deprecated.Description copied from class:Proc
Terminates the process.- Specified by:
kill
in classProc
- Throws:
IOException
- if there's an error killing a process and a stack trace could help the trouble-shooting.InterruptedException
-
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 viaProc.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 classProc
- Throws:
IOException
- if there's an error launching/joining a process and a stack trace could help the trouble-shooting.InterruptedException
-
isAlive
public boolean isAlive() throws IOException, InterruptedException
Deprecated.Description copied from class:Proc
Checks if the process is still alive.- Specified by:
isAlive
in classProc
- Throws:
IOException
InterruptedException
-
getStdout
public InputStream getStdout()
Deprecated.Description copied from class:Proc
Returns anInputStream
to read fromstdout
of the child process.When this method returns null,
Proc
will internally pump the output from the child process to yourOutputStream
of choosing.- Specified by:
getStdout
in classProc
- Returns:
null
unlessLauncher.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 anInputStream
to read fromstderr
of the child process.When this method returns null,
Proc
will internally pump the output from the child process to yourOutputStream
of choosing.- Specified by:
getStderr
in classProc
- Returns:
null
unlessLauncher.ProcStarter.readStderr()
is used to indicate that the caller intends to pump the stream by itself.
-
getStdin
public OutputStream getStdin()
Deprecated.Description copied from class:Proc
Returns anOutputStream
to write tostdin
of the child process.When this method returns null,
Proc
will internally pump theInputStream
of your choosing to the child process.- Specified by:
getStdin
in classProc
- Returns:
null
unlessLauncher.ProcStarter.writeStdin()
is used to indicate that the caller intends to pump the stream by itself.
-
-