| Modifier and Type | Class and Description |
|---|---|
static class |
Launcher.RemoteLauncher.ProcImpl |
Launcher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcesschannel, listener, showFullPath| Constructor and Description |
|---|
RemoteLauncher(TaskListener listener,
hudson.remoting.VirtualChannel channel,
boolean isUnix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUnix()
Returns true if this
Launcher is going to launch on Unix. |
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(String[] cmd,
OutputStream err,
FilePath _workDir,
Map<String,String> envOverrides)
Launches a specified process and connects its input/output to a
Channel, then
return it. |
decorateByEnv, decorateByPrefix, decorateFor, getChannel, getComputer, getListener, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, maskedPrintCommandLine, maskedPrintCommandLine, printCommandLinepublic RemoteLauncher(TaskListener listener, hudson.remoting.VirtualChannel channel, boolean isUnix)
public Proc launch(Launcher.ProcStarter ps) throws IOException
LauncherLauncher.ProcStarter.start() to start a process with a specific launcher.launch in class LauncherIOExceptionpublic hudson.remoting.Channel launchChannel(String[] cmd, OutputStream err, FilePath _workDir, Map<String,String> envOverrides) throws IOException, InterruptedException
LauncherChannel, then
return it.
When the returned channel is terminated, the process will be killed.
launchChannel in class Launchererr - 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 processenvOverrides - 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 boolean isUnix()
LauncherLauncher is going to launch on Unix.public void kill(Map<String,String> modelEnvVars) throws IOException, InterruptedException
LauncherProcessTree.killAll(Map) to kill processes.kill in class LauncherIOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.