Launcher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcess
channel, listener, showFullPath
Constructor and Description |
---|
LocalLauncher(TaskListener listener) |
LocalLauncher(TaskListener listener,
hudson.remoting.VirtualChannel channel) |
Modifier and Type | Method and Description |
---|---|
void |
kill(Map<String,String> modelEnvVars)
Calls
ProcessTree.killAll(Map) to kill processes. |
Proc |
launch(Launcher.ProcStarter ps)
Primarily invoked from
Launcher.ProcStarter.start() to start a process with a specific launcher. |
hudson.remoting.Channel |
launchChannel(OutputStream out,
ProcessBuilder pb) |
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 LocalLauncher(TaskListener listener)
public LocalLauncher(TaskListener listener, hudson.remoting.VirtualChannel channel)
public Proc launch(Launcher.ProcStarter ps) 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
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 a slave agent, that
becomes the "current" process), these variables will be also set.IOException
public void kill(Map<String,String> modelEnvVars) throws InterruptedException
Launcher
ProcessTree.killAll(Map)
to kill processes.kill
in class Launcher
InterruptedException
public hudson.remoting.Channel launchChannel(OutputStream out, ProcessBuilder pb) throws IOException
out
- Where the stderr from the launched process will be sent.IOException
Copyright © 2019. All rights reserved.