hudson.plugins.sshslaves
Class SSHConnector

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

public class SSHConnector
extends hudson.slaves.ComputerConnector

ComputerConnector for SSHLauncher.

Significant code duplication between this and SSHLauncher because of the historical reason. Newer plugins like this should define a separate Describable connection parameter class and have connector and launcher share them.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class SSHConnector.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 String javaPath
          Field javaPath.
 String jvmOptions
          Field jvmOptions.
 hudson.util.Secret password
          Field password todo remove password once authentication is stored in the descriptor.
 int port
          Field port
 String privatekey
          File path of the private key.
 String username
          Field username
 
Constructor Summary
SSHConnector(int port, String username, String password, String privatekey, String jvmOptions, String javaPath)
          Constructor SSHLauncher creates a new SSHLauncher instance.
 
Method Summary
 SSHLauncher launch(String host, hudson.model.TaskListener listener)
           
 
Methods inherited from class hudson.slaves.ComputerConnector
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

public final int port
Field port


username

public final String username
Field username


password

public final hudson.util.Secret password
Field password todo remove password once authentication is stored in the descriptor.


privatekey

public final String privatekey
File path of the private key.


javaPath

public final String javaPath
Field javaPath.


jvmOptions

public final String jvmOptions
Field jvmOptions.

Constructor Detail

SSHConnector

@DataBoundConstructor
public SSHConnector(int port,
                                         String username,
                                         String password,
                                         String privatekey,
                                         String jvmOptions,
                                         String javaPath)
Constructor SSHLauncher creates a new SSHLauncher instance.

Parameters:
port - The port to connect on.
username - The username to connect as.
password - The password to connect with.
privatekey - The ssh privatekey to connect with.
jvmOptions - jvm options.
javaPath - optional path to java.
Method Detail

launch

public SSHLauncher launch(String host,
                          hudson.model.TaskListener listener)
                   throws IOException,
                          InterruptedException
Specified by:
launch in class hudson.slaves.ComputerConnector
Throws:
IOException
InterruptedException


Copyright © 2004-2011 Hudson. All Rights Reserved.