hudson.plugins.sshslaves
クラス SSHLauncher

java.lang.Object
  上位を拡張 hudson.model.AbstractDescribableImpl<hudson.slaves.ComputerLauncher>
      上位を拡張 hudson.slaves.ComputerLauncher
          上位を拡張 hudson.plugins.sshslaves.SSHLauncher
すべての実装されたインタフェース:
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.


入れ子のクラスの概要
static class SSHLauncher.DefaultJavaProvider
           
static class SSHLauncher.DescriptorImpl
           
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
フィールドの概要
 
クラス hudson.slaves.ComputerLauncher から継承されたフィールド
LIST
 
コンストラクタの概要
SSHLauncher(java.lang.String host, int port, java.lang.String username, java.lang.String password, java.lang.String privatekey, java.lang.String jvmOptions)
          Constructor SSHLauncher creates a new SSHLauncher instance.
 
メソッドの概要
 void afterDisconnect(hudson.slaves.SlaveComputer slaveComputer, hudson.model.TaskListener listener)
          
protected  java.lang.String checkJavaVersion(java.io.PrintStream logger, java.lang.String javaCommand, java.io.BufferedReader r, java.io.StringWriter output)
          Given the output of "java -version" in r, determine if this version of Java is supported.
 com.trilead.ssh2.Connection getConnection()
           
 java.lang.String getHost()
          Getter for property 'host'.
 java.lang.String getJvmOptions()
          Gets the JVM Options used to launch the slave JVM.
 java.lang.String getPassword()
          Getter for property 'password'.
 int getPort()
          Getter for property 'port'.
 java.lang.String getPrivatekey()
          Getter for property 'privatekey'.
protected  java.lang.String getTimestamp()
          Gets the formatted current time stamp.
 java.lang.String getUsername()
          Getter for property 'username'.
 boolean isLaunchSupported()
          
 void launch(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
          
protected  void openConnection(hudson.model.TaskListener listener)
           
protected  void reportEnvironment(hudson.model.TaskListener listener)
           
protected  java.lang.String resolveJava(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
          Finds local Java, and if none exist, install one.
 
クラス hudson.slaves.ComputerLauncher から継承されたメソッド
afterDisconnect, beforeDisconnect, beforeDisconnect, launch
 
クラス hudson.model.AbstractDescribableImpl から継承されたメソッド
getDescriptor
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SSHLauncher

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

パラメータ:
host - The host to connect to.
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 -
メソッドの詳細

isLaunchSupported

public boolean isLaunchSupported()

オーバーライド:
クラス hudson.slaves.ComputerLauncher 内の isLaunchSupported

getJvmOptions

public java.lang.String getJvmOptions()
Gets the JVM Options used to launch the slave JVM.

戻り値:

getTimestamp

protected java.lang.String getTimestamp()
Gets the formatted current time stamp.

戻り値:
the formatted current time stamp.

launch

public void launch(hudson.slaves.SlaveComputer computer,
                   hudson.model.TaskListener listener)
            throws java.lang.InterruptedException

オーバーライド:
クラス hudson.slaves.ComputerLauncher 内の launch
例外:
java.lang.InterruptedException

resolveJava

protected java.lang.String resolveJava(hudson.slaves.SlaveComputer computer,
                                       hudson.model.TaskListener listener)
                                throws java.lang.InterruptedException,
                                       hudson.util.IOException2
Finds local Java, and if none exist, install one.

例外:
java.lang.InterruptedException
hudson.util.IOException2

reportEnvironment

protected void reportEnvironment(hudson.model.TaskListener listener)
                          throws java.io.IOException,
                                 java.lang.InterruptedException
例外:
java.io.IOException
java.lang.InterruptedException

checkJavaVersion

protected java.lang.String checkJavaVersion(java.io.PrintStream logger,
                                            java.lang.String javaCommand,
                                            java.io.BufferedReader r,
                                            java.io.StringWriter output)
                                     throws java.io.IOException
Given the output of "java -version" in r, determine if this version of Java is supported. This method has default visiblity for testing.

パラメータ:
logger - where to log the output
javaCommand - the command executed, used for logging
r - the output of "java -version"
output - copy the data from r into this output buffer
例外:
java.io.IOException

openConnection

protected void openConnection(hudson.model.TaskListener listener)
                       throws java.io.IOException,
                              java.lang.InterruptedException
例外:
java.io.IOException
java.lang.InterruptedException

afterDisconnect

public void afterDisconnect(hudson.slaves.SlaveComputer slaveComputer,
                            hudson.model.TaskListener listener)

オーバーライド:
クラス hudson.slaves.ComputerLauncher 内の afterDisconnect

getHost

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

戻り値:
Value for property 'host'.

getPort

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

戻り値:
Value for property 'port'.

getUsername

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

戻り値:
Value for property 'username'.

getPassword

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

戻り値:
Value for property 'password'.

getPrivatekey

public java.lang.String getPrivatekey()
Getter for property 'privatekey'.

戻り値:
Value for property 'privatekey'.

getConnection

public com.trilead.ssh2.Connection getConnection()


Copyright © 2010. All Rights Reserved.