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.
| Modifier and Type | Class and Description |
|---|---|
static class |
SSHConnector.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
String |
javaPath
Field javaPath.
|
hudson.tools.JDKInstaller |
jdkInstaller
Field jdk
|
String |
jvmOptions
Field jvmOptions.
|
hudson.util.Secret |
password
Field password
|
int |
port
Field port
|
String |
prefixStartSlaveCmd
Field prefixStartSlaveCmd.
|
String |
privatekey
File path of the private key.
|
String |
suffixStartSlaveCmd
Field suffixStartSlaveCmd.
|
String |
username
Field username
|
| Constructor and Description |
|---|
SSHConnector(int port,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
hudson.tools.JDKInstaller jdkInstaller,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd) |
SSHConnector(int port,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd) |
| Modifier and Type | Method and Description |
|---|---|
SSHLauncher |
launch(String host,
hudson.model.TaskListener listener) |
public final int port
public final String username
public final hudson.util.Secret password
public final String privatekey
public final String jvmOptions
public final String javaPath
public final hudson.tools.JDKInstaller jdkInstaller
public final String prefixStartSlaveCmd
public final String suffixStartSlaveCmd
@DataBoundConstructor
public SSHConnector(int port,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd)
public SSHConnector(int port,
String username,
String password,
String privatekey,
String jvmOptions,
String javaPath,
hudson.tools.JDKInstaller jdkInstaller,
String prefixStartSlaveCmd,
String suffixStartSlaveCmd)
SSHLauncher#SSHLauncher(String, int, String, String, String, String, String, JDKInstaller, prefixStartSlaveCmd, suffixStartSlaveCmd)public SSHLauncher launch(String host, hudson.model.TaskListener listener) throws IOException, InterruptedException
launch in class hudson.slaves.ComputerConnectorIOExceptionInterruptedExceptionCopyright © 2004-2012. All Rights Reserved.