public class ManagedWindowsServiceLauncher extends ComputerLauncher
Modifier and Type | Class and Description |
---|---|
static class |
ManagedWindowsServiceLauncher.AccountInfo |
static class |
ManagedWindowsServiceLauncher.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
String |
host
Host name to connect to.
|
String |
javaPath |
ManagedWindowsServiceLauncher.AccountInfo |
logOn
Deprecated.
Use
account |
Secret |
password |
String |
userName
"[DOMAIN\\]USERNAME" to follow the Windows convention.
|
String |
vmargs |
LIST
Constructor and Description |
---|
ManagedWindowsServiceLauncher(String userName,
String password) |
ManagedWindowsServiceLauncher(String userName,
String password,
String host) |
ManagedWindowsServiceLauncher(String userName,
String password,
String host,
ManagedWindowsServiceAccount account,
String vmargs) |
ManagedWindowsServiceLauncher(String userName,
String password,
String host,
ManagedWindowsServiceAccount account,
String vmargs,
String javaPath) |
ManagedWindowsServiceLauncher(String userName,
String password,
String host,
ManagedWindowsServiceLauncher.AccountInfo account) |
Modifier and Type | Method and Description |
---|---|
void |
afterDisconnect(SlaveComputer computer,
TaskListener listener) |
protected String |
determineHost(Computer c)
Determines the host name (or the IP address) to connect to.
|
ManagedWindowsServiceAccount |
getAccount() |
protected String |
getTimestamp()
Gets the formatted current time stamp.
|
void |
launch(SlaveComputer computer,
TaskListener listener) |
Object |
readResolve() |
afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launch
getDescriptor
public final String userName
public final Secret password
public final String vmargs
public final String javaPath
public final transient ManagedWindowsServiceLauncher.AccountInfo logOn
account
public final String host
public ManagedWindowsServiceLauncher(String userName, String password)
public ManagedWindowsServiceLauncher(String userName, String password, String host)
public ManagedWindowsServiceLauncher(String userName, String password, String host, ManagedWindowsServiceLauncher.AccountInfo account)
public ManagedWindowsServiceLauncher(String userName, String password, String host, ManagedWindowsServiceAccount account, String vmargs)
public Object readResolve()
public ManagedWindowsServiceAccount getAccount()
public void launch(SlaveComputer computer, TaskListener listener) throws IOException, InterruptedException
launch
in class ComputerLauncher
IOException
InterruptedException
protected String determineHost(Computer c)
c
- the computerpublic void afterDisconnect(SlaveComputer computer, TaskListener listener)
afterDisconnect
in class ComputerLauncher
protected String getTimestamp()
Copyright © 2016–2022. All rights reserved.