hudson.plugins.sshslaves
Class SSHLauncher

java.lang.Object
  extended by hudson.slaves.ComputerLauncher
      extended by hudson.plugins.sshslaves.SSHLauncher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.slaves.ComputerLauncher>

public class SSHLauncher
extends hudson.slaves.ComputerLauncher

A computer launcher that tries to start a linux slave by opening an SSH connection and trying to find java.


Field Summary
static hudson.model.Descriptor<hudson.slaves.ComputerLauncher> DESCRIPTOR
          Field DESCRIPTOR
 
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
 
Constructor Summary
SSHLauncher(java.lang.String host, int port, java.lang.String username, java.lang.String password)
          Constructor SSHLauncher creates a new SSHLauncher instance.
 
Method Summary
 void afterDisconnect(hudson.slaves.SlaveComputer slaveComputer, hudson.util.StreamTaskListener listener)
          
 hudson.model.Descriptor<hudson.slaves.ComputerLauncher> getDescriptor()
          
 java.lang.String getHost()
          Getter for property 'host'.
 java.lang.String getPassword()
          Getter for property 'password'.
 int getPort()
          Getter for property 'port'.
 java.lang.String getUsername()
          Getter for property 'username'.
 boolean isLaunchSupported()
          
 void launch(hudson.slaves.SlaveComputer computer, hudson.util.StreamTaskListener listener)
          
 
Methods inherited from class hudson.slaves.ComputerLauncher
beforeDisconnect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

public static final hudson.model.Descriptor<hudson.slaves.ComputerLauncher> DESCRIPTOR
Field DESCRIPTOR

Constructor Detail

SSHLauncher

@DataBoundConstructor
public SSHLauncher(java.lang.String host,
                                        int port,
                                        java.lang.String username,
                                        java.lang.String password)
Constructor SSHLauncher creates a new SSHLauncher instance.

Parameters:
host - The host to connect to.
port - The port to connect on.
username - The username to connect as.
password - The password to connect with.
Method Detail

isLaunchSupported

public boolean isLaunchSupported()

Overrides:
isLaunchSupported in class hudson.slaves.ComputerLauncher

launch

public void launch(hudson.slaves.SlaveComputer computer,
                   hudson.util.StreamTaskListener listener)

Specified by:
launch in class hudson.slaves.ComputerLauncher

afterDisconnect

public void afterDisconnect(hudson.slaves.SlaveComputer slaveComputer,
                            hudson.util.StreamTaskListener listener)

Overrides:
afterDisconnect in class hudson.slaves.ComputerLauncher

getHost

public java.lang.String getHost()
Getter for property 'host'.

Returns:
Value for property 'host'.

getPort

public int getPort()
Getter for property 'port'.

Returns:
Value for property 'port'.

getUsername

public java.lang.String getUsername()
Getter for property 'username'.

Returns:
Value for property 'username'.

getPassword

public java.lang.String getPassword()
Getter for property 'password'.

Returns:
Value for property 'password'.

getDescriptor

public hudson.model.Descriptor<hudson.slaves.ComputerLauncher> getDescriptor()



Copyright © 2008. All Rights Reserved.