Launcher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcess
channel, 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, printCommandLine
public DummyLauncher(TaskListener listener)
public Proc launch(Launcher.ProcStarter starter) throws IOException
Launcher
Launcher.ProcStarter.start()
to start a process with a specific launcher.launch
in class Launcher
IOException
public hudson.remoting.Channel launchChannel(String[] cmd, OutputStream out, FilePath workDir, Map<String,String> envVars) throws IOException, InterruptedException
Launcher
Channel
, then
return it.
When the returned channel is terminated, the process will be killed.
launchChannel
in class Launcher
out
- 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 an agent, that
becomes the "current" process), these variables will be also set.IOException
InterruptedException
public void kill(Map<String,String> modelEnvVars) throws IOException, InterruptedException
Launcher
ProcessTree.killAll(Map)
to kill processes.kill
in class Launcher
IOException
InterruptedException
Copyright © 2004–2017. All rights reserved.