Package hudson
Class Launcher.RemoteLauncher
java.lang.Object
hudson.Launcher
hudson.Launcher.RemoteLauncher
- Enclosing class:
- Launcher
Launches processes remotely by using the given channel.
- 
Nested Class SummaryNested ClassesNested 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 SummaryConstructorsConstructorDescriptionRemoteLauncher(TaskListener listener, hudson.remoting.VirtualChannel channel, boolean isUnix) 
- 
Method SummaryModifier and TypeMethodDescriptionhudson.remoting.VirtualChannelGets the channel that can be used to run a program remotely.booleanisUnix()Returns true if thisLauncheris going to launch on Unix.voidCallsProcessTree.killAll(Map)to kill processes.Primarily invoked fromLauncher.ProcStarter.start()to start a process with a specific launcher.hudson.remoting.ChannellaunchChannel(String[] cmd, OutputStream err, FilePath _workDir, Map<String, String> envOverrides) Launches a specified process and connects its input/output to aChannel, then return it.toString()Methods inherited from class hudson.LauncherdecorateByEnv, decorateByPrefix, decorateFor, getComputer, getListener, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, launch, maskedPrintCommandLine, maskedPrintCommandLine, prepareFilterRules, printCommandLine, setEnvVarsFilterRuleWrapper
- 
Constructor Details- 
RemoteLauncherpublic RemoteLauncher(@NonNull TaskListener listener, @NonNull hudson.remoting.VirtualChannel channel, boolean isUnix) 
 
- 
- 
Method Details- 
getChannel@NonNull public hudson.remoting.VirtualChannel getChannel()Description copied from class:LauncherGets the channel that can be used to run a program remotely.- Overrides:
- getChannelin class- Launcher
- Returns:
- nullif the target node is not configured to support this. this is a transitional measure. Note that a launcher for the built-in node is always non-null.
 
- 
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 err, FilePath _workDir, Map<String, String> envOverrides) 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 class- Launcher
- Parameters:
- cmd- The commands.
- err- 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
- envOverrides- 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
- InterruptedException
 
- 
isUnixpublic boolean isUnix()Description copied from class:LauncherReturns true if thisLauncheris going to launch on Unix.
- 
killDescription copied from class:LauncherCallsProcessTree.killAll(Map)to kill processes.- Specified by:
- killin class- Launcher
- Throws:
- IOException
- InterruptedException
 
- 
toString
 
-