|Modifier and Type||Class and Description|
|Constructor and Description|
|Modifier and Type||Method and Description|
Launches the agent for the given
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launch
@DataBoundConstructor public CommandLauncher(String command)
public String getCommand()
public void launch(SlaveComputer computer, TaskListener listener)
If the agent is launched successfully,
SlaveComputer.setChannel(InputStream, OutputStream, TaskListener, Channel.Listener)
should be invoked in the end to notify Hudson of the established connection.
The operation could also fail, in which case there's no need to make any callback notification,
(except to notify the user of the failure through
Also note that the normal return of this method call does not necessarily signify a successful launch.
If someone programmatically calls this method and wants to find out if the launch was a success,
Computer.isOnline() at the end.
This method must operate synchronously. Asynchrony is provided by
its correct operation depends on this.
Copyright © 2004–2017. All rights reserved.