hudson.os.windows
Class ManagedWindowsServiceLauncher

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.slaves.ComputerLauncher>
      extended by hudson.slaves.ComputerLauncher
          extended by 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 Class Summary
static class ManagedWindowsServiceLauncher.DescriptorImpl
           
 
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
 
Constructor Summary
ManagedWindowsServiceLauncher(String userName, String password)
           
 
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
 

Field Detail

userName

public final String userName
"[DOMAIN\\]USERNAME" to follow the Windows convention.


password

public final hudson.util.Secret password
Constructor Detail

ManagedWindowsServiceLauncher

@DataBoundConstructor
public ManagedWindowsServiceLauncher(String userName,
                                                          String password)
Method Detail

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.