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.
Remotely launched process via
Channel.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.Proc
Proc.LocalProc, Proc.ProcWithJenkins23271Patch, Proc.RemoteProc -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns anInputStreamto read fromstderrof the child process.getStdin()Deprecated.Returns anOutputStreamto write tostdinof the child process.Deprecated.Returns anInputStreamto read fromstdoutof the child process.booleanisAlive()Deprecated.Checks if the process is still alive.intjoin()Deprecated.Waits for the completion of the process.voidkill()Deprecated.Terminates the process.Methods inherited from class hudson.Proc
joinWithTimeout
-
Constructor Details
-
RemoteProc
Deprecated.
-
-
Method Details
-
kill
Deprecated.Description copied from class:ProcTerminates the process.- Specified by:
killin classProc- Throws:
IOException- if there's an error killing a process and a stack trace could help the trouble-shooting.InterruptedException
-
join
Deprecated.Description copied from class:ProcWaits 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:
joinin classProc- Throws:
IOException- if there's an error launching/joining a process and a stack trace could help the trouble-shooting.InterruptedException
-
isAlive
Deprecated.Description copied from class:ProcChecks if the process is still alive.- Specified by:
isAlivein classProc- Throws:
IOExceptionInterruptedException
-
getStdout
Deprecated.Description copied from class:ProcReturns anInputStreamto read fromstdoutof the child process.When this method returns null,
Procwill internally pump the output from the child process to yourOutputStreamof choosing.- Specified by:
getStdoutin classProc- Returns:
nullunlessLauncher.ProcStarter.readStdout()is used to indicate that the caller intends to pump the stream by itself.
-
getStderr
Deprecated.Description copied from class:ProcReturns anInputStreamto read fromstderrof the child process.When this method returns null,
Procwill internally pump the output from the child process to yourOutputStreamof choosing.- Specified by:
getStderrin classProc- Returns:
nullunlessLauncher.ProcStarter.readStderr()is used to indicate that the caller intends to pump the stream by itself.
-
getStdin
Deprecated.Description copied from class:ProcReturns anOutputStreamto write tostdinof the child process.When this method returns null,
Procwill internally pump theInputStreamof your choosing to the child process.- Specified by:
getStdinin classProc- Returns:
nullunlessLauncher.ProcStarter.writeStdin()is used to indicate that the caller intends to pump the stream by itself.
-
Launcher.RemoteLauncher.ProcImpl