public class InstallerGui extends jenkins.security.MasterToSlaveCallable<Void,IOException>
Channel.call(Callable) on an agent,
adds a GUI menu to install the agent as a platform-specific service.| Modifier and Type | Field and Description |
|---|---|
protected hudson.remoting.jnlp.MainDialog |
dialog |
protected hudson.remoting.Engine |
engine |
static LaunchConfiguration |
LAUNCH_CONFIG
LaunchConfiguration that controls what process will be run under the service wrapper
when the agent installation happens through GUI. |
| Constructor and Description |
|---|
InstallerGui(SlaveInstaller installer,
hudson.FilePath slaveRoot,
String jnlpMac) |
InstallerGui(SlaveInstaller installer,
hudson.slaves.SlaveComputer sc) |
| Modifier and Type | Method and Description |
|---|---|
Void |
call()
To be executed on each agent JVM.
|
protected URL |
getJnlpUrl() |
protected transient hudson.remoting.Engine engine
protected transient hudson.remoting.jnlp.MainDialog dialog
public static LaunchConfiguration LAUNCH_CONFIG
LaunchConfiguration that controls what process will be run under the service wrapper
when the agent installation happens through GUI.
Conceptually, this can be thought of as a recovered memory of how this agent JVM has been started.
This is "recovered", because we can't really reliably tell from within the agent itself, but
nonetheless it's a piece of information scoped to the agent JVM. Hence singleton.public InstallerGui(SlaveInstaller installer, hudson.slaves.SlaveComputer sc)
public InstallerGui(SlaveInstaller installer, hudson.FilePath slaveRoot, String jnlpMac)
public Void call() throws IOException
IOExceptionprotected URL getJnlpUrl() throws MalformedURLException
MalformedURLExceptionCopyright © 2016–2017. All rights reserved.