Modifier and Type | Class and Description |
---|---|
static class |
Launcher.RemoteLauncher.ProcImpl |
Launcher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcess
channel, 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, printCommandLine
public RemoteLauncher(TaskListener listener, hudson.remoting.VirtualChannel channel, boolean isUnix)
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 err, FilePath _workDir, Map<String,String> envOverrides) throws IOException, InterruptedException
Launcher
Channel
, then
return it.
When the returned channel is terminated, the process will be killed.
launchChannel
in class Launcher
err
- 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.IOException
InterruptedException
public boolean isUnix()
Launcher
Launcher
is going to launch on Unix.public void kill(Map<String,String> modelEnvVars) throws IOException, InterruptedException
Launcher
ProcessTree.killAll(Map)
to kill processes.kill
in class Launcher
IOException
InterruptedException
Copyright © 2019. All rights reserved.