public class JNLPLauncher extends ComputerLauncher
ComputerLauncher via JNLP.ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static Descriptor<ComputerLauncher> |
DESCRIPTOR |
String |
tunnel
If the slave needs to tunnel the connection to the master,
specify the "host:port" here.
|
String |
vmargs
Additional JVM arguments.
|
LIST| Constructor and Description |
|---|
JNLPLauncher() |
JNLPLauncher(String tunnel,
String vmargs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLaunchSupported()
Returns true if this
ComputerLauncher supports
programatic launch of the slave agent in the target Computer. |
void |
launch(SlaveComputer computer,
TaskListener listener)
Launches the slave agent for the given
Computer. |
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, launchgetDescriptorpublic final String tunnel
Null if no tunneling is necessary.
public final String vmargs
@Extension public static final Descriptor<ComputerLauncher> DESCRIPTOR
public boolean isLaunchSupported()
ComputerLauncherComputerLauncher supports
programatic launch of the slave agent in the target Computer.isLaunchSupported in class ComputerLauncherpublic void launch(SlaveComputer computer, TaskListener listener)
ComputerLauncherComputer.
If the slave 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 StreamTaskListener.)
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,
use Computer.isOnline() at the end.
This method must operate synchronously. Asynchrony is provided by Computer.connect(boolean) and
its correct operation depends on this.
launch in class ComputerLauncherlistener - The progress of the launch, as well as any error, should be sent to this listener.Copyright © 2019. All rights reserved.