hudson.os.windows
Class ManagedWindowsServiceLauncher
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.slaves.ComputerLauncher>
hudson.slaves.ComputerLauncher
hudson.os.windows.ManagedWindowsServiceLauncher
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.ComputerLauncher>
public class ManagedWindowsServiceLauncher
- extends hudson.slaves.ComputerLauncher
Windows slave installed/managed as a service entirely remotely
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Field Summary |
hudson.util.Secret |
password
|
String |
userName
"[DOMAIN\\]USERNAME" to follow the Windows convention. |
| Fields inherited from class hudson.slaves.ComputerLauncher |
LIST |
|
Method Summary |
void |
afterDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener)
|
protected String |
determineHost(hudson.model.Computer c)
Determines the host name (or the IP address) to connect to. |
void |
launch(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener)
|
| Methods inherited from class hudson.slaves.ComputerLauncher |
afterDisconnect, beforeDisconnect, beforeDisconnect, isLaunchSupported, launch |
| Methods inherited from class hudson.model.AbstractDescribableImpl |
getDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userName
public final String userName
- "[DOMAIN\\]USERNAME" to follow the Windows convention.
password
public final hudson.util.Secret password
ManagedWindowsServiceLauncher
@DataBoundConstructor
public ManagedWindowsServiceLauncher(String userName,
String password)
launch
public void launch(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
- Overrides:
launch in class hudson.slaves.ComputerLauncher
- Throws:
IOException
InterruptedException
determineHost
protected String determineHost(hudson.model.Computer c)
throws IOException,
InterruptedException
- Determines the host name (or the IP address) to connect to.
- Throws:
IOException
InterruptedException
afterDisconnect
public void afterDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener)
- Overrides:
afterDisconnect in class hudson.slaves.ComputerLauncher
Copyright © 2004-2011 Hudson. All Rights Reserved.