Package hudson
Class Launcher.DummyLauncher
java.lang.Object
hudson.Launcher
hudson.Launcher.DummyLauncher
- Enclosing class:
- Launcher
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static class Launcher.DummyLauncher
extends Launcher
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.Launcher
Launcher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcess -
Field Summary
Fields inherited from class hudson.Launcher
channel, envVarsFilterRuleWrapper, listener, showFullPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCallsProcessTree.killAll(Map)to kill processes.launch(Launcher.ProcStarter starter) Primarily invoked fromLauncher.ProcStarter.start()to start a process with a specific launcher.hudson.remoting.ChannellaunchChannel(String[] cmd, OutputStream out, FilePath workDir, Map<String, String> envVars) Launches a specified process and connects its input/output to aChannel, then return it.Methods inherited from class hudson.Launcher
decorateByEnv, decorateByPrefix, decorateFor, getChannel, getComputer, getListener, isUnix, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, maskedPrintCommandLine, maskedPrintCommandLine, prepareFilterRules, printCommandLine, setEnvVarsFilterRuleWrapper
-
Constructor Details
-
DummyLauncher
-
-
Method Details
-
launch
Description copied from class:LauncherPrimarily invoked fromLauncher.ProcStarter.start()to start a process with a specific launcher.- Specified by:
launchin classLauncher- Throws:
IOException
-
launchChannel
public hudson.remoting.Channel launchChannel(String[] cmd, OutputStream out, FilePath workDir, Map<String, String> envVars) throws IOException, InterruptedExceptionDescription copied from class:LauncherLaunches a specified process and connects its input/output to aChannel, then return it.When the returned channel is terminated, the process will be killed.
- Specified by:
launchChannelin classLauncher- Parameters:
cmd- The commands.out- Where the stderr from the launched process will be sent.workDir- The working directory of the new process, ornullto 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.- Throws:
IOExceptionInterruptedException
-
kill
Description copied from class:LauncherCallsProcessTree.killAll(Map)to kill processes.- Specified by:
killin classLauncher- Throws:
IOExceptionInterruptedException
-