Launcher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcesschannel, listener, showFullPath| Constructor and Description |
|---|
DummyLauncher(TaskListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
kill(Map<String,String> modelEnvVars)
Calls
ProcessTree.killAll(Map) to kill processes. |
Proc |
launch(Launcher.ProcStarter starter)
Primarily invoked from
Launcher.ProcStarter.start() to start a process with a specific launcher. |
hudson.remoting.Channel |
launchChannel(String[] cmd,
OutputStream out,
FilePath workDir,
Map<String,String> envVars)
Launches a specified process and connects its input/output to a
Channel, then
return it. |
decorateByEnv, decorateByPrefix, decorateFor, getChannel, getComputer, getListener, isUnix, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, maskedPrintCommandLine, maskedPrintCommandLine, printCommandLinepublic DummyLauncher(TaskListener listener)
public Proc launch(Launcher.ProcStarter starter) throws IOException
LauncherLauncher.ProcStarter.start() to start a process with a specific launcher.launch in class LauncherIOExceptionpublic hudson.remoting.Channel launchChannel(String[] cmd, OutputStream out, FilePath workDir, Map<String,String> envVars) throws IOException, InterruptedException
LauncherChannel, then
return it.
When the returned channel is terminated, the process will be killed.
launchChannel in class Launcherout - Where the stderr from the launched process will be sent.workDir - The working directory of the new process, or null to inherit
from the current processenvVars - Environment variable overrides. In addition to what the current process
is inherited (if this is going to be launched from a slave agent, that
becomes the "current" process), these variables will be also set.IOExceptionInterruptedExceptionpublic void kill(Map<String,String> modelEnvVars) throws IOException, InterruptedException
LauncherProcessTree.killAll(Map) to kill processes.kill in class LauncherIOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.