Package hudson
Class Launcher.LocalLauncher
java.lang.Object
hudson.Launcher
hudson.Launcher.LocalLauncher
- Enclosing class:
- Launcher
Launcher that launches process locally.- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.LauncherLauncher.DecoratedLauncher, Launcher.DummyLauncher, Launcher.IOTriplet, Launcher.LocalLauncher, Launcher.ProcStarter, Launcher.RemoteLauncher, Launcher.RemoteProcess
- 
Field SummaryFields inherited from class hudson.Launcherchannel, envVarsFilterRuleWrapper, listener, showFullPath
- 
Constructor SummaryConstructorsConstructorDescriptionLocalLauncher(TaskListener listener) LocalLauncher(TaskListener listener, hudson.remoting.VirtualChannel channel) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidCallsProcessTree.killAll(Map)to kill processes.Primarily invoked fromLauncher.ProcStarter.start()to start a process with a specific launcher.hudson.remoting.ChannellaunchChannel(OutputStream out, ProcessBuilder pb) 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.LauncherdecorateByEnv, 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- 
LocalLauncher
- 
LocalLauncher
 
- 
- 
Method Details- 
launchDescription copied from class:LauncherPrimarily invoked fromLauncher.ProcStarter.start()to start a process with a specific launcher.- Specified by:
- launchin class- Launcher
- Throws:
- IOException
 
- 
launchChannelpublic hudson.remoting.Channel launchChannel(String[] cmd, OutputStream out, FilePath workDir, Map<String, String> envVars) throws IOExceptionDescription 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 class- Launcher
- Parameters:
- cmd- The commands.
- out- Where the stderr from the launched process will be sent.
- workDir- The working directory of the new process, or- nullto inherit from the current process
- envVars- 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:
- IOException
 
- 
killDescription copied from class:LauncherCallsProcessTree.killAll(Map)to kill processes.- Specified by:
- killin class- Launcher
- Throws:
- InterruptedException
 
- 
launchChannelpublic hudson.remoting.Channel launchChannel(OutputStream out, ProcessBuilder pb) throws IOException - Parameters:
- out- Where the stderr from the launched process will be sent.
- Throws:
- IOException
 
 
-