Modifier and Type | Class and Description |
---|---|
static interface |
JschSshClient.Connection<T> |
SshClient.Factory
Constructor and Description |
---|
JschSshClient(BackoffLimitedRetryHandler backoffLimitedRetryHandler,
IPSocket socket,
int timeout,
String username,
String password,
byte[] privateKey) |
Modifier and Type | Method and Description |
---|---|
protected <T,C extends JschSshClient.Connection<T>> |
acquire(C connection) |
void |
connect() |
void |
disconnect() |
ExecResponse |
exec(String command) |
protected JschSshClient.Connection<com.jcraft.jsch.ChannelExec> |
execConnection(String command) |
Payload |
get(String path) |
String |
getHostAddress() |
String |
getUsername() |
void |
put(String path,
Payload contents) |
void |
put(String path,
String contents) |
String |
toString() |
public JschSshClient(BackoffLimitedRetryHandler backoffLimitedRetryHandler, IPSocket socket, int timeout, String username, String password, byte[] privateKey)
protected <T,C extends JschSshClient.Connection<T>> T acquire(C connection)
@PreDestroy public void disconnect()
disconnect
in interface SshClient
protected JschSshClient.Connection<com.jcraft.jsch.ChannelExec> execConnection(String command)
public ExecResponse exec(String command)
public String getHostAddress()
getHostAddress
in interface SshClient
public String getUsername()
getUsername
in interface SshClient
Copyright © 2009-2012 jclouds. All Rights Reserved.