public class JschSshClient extends Object implements org.jclouds.ssh.SshClient
| Modifier and Type | Class and Description |
|---|---|
static interface |
JschSshClient.Connection<T> |
static interface |
JschSshClient.ConnectionWithStreams<T> |
| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.logging.Logger |
logger |
| Constructor and Description |
|---|
JschSshClient(org.jclouds.proxy.ProxyConfig proxyConfig,
org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler,
com.google.common.net.HostAndPort socket,
org.jclouds.domain.LoginCredentials loginCredentials,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
protected <T,C extends JschSshClient.Connection<T>> |
acquire(C connection) |
void |
connect() |
void |
disconnect() |
org.jclouds.compute.domain.ExecResponse |
exec(String command) |
org.jclouds.compute.domain.ExecChannel |
execChannel(String command) |
protected JschSshClient.ConnectionWithStreams<com.jcraft.jsch.ChannelExec> |
execConnection(String command) |
org.jclouds.io.Payload |
get(String path) |
String |
getHostAddress() |
String |
getUsername() |
void |
put(String path,
org.jclouds.io.Payload contents) |
void |
put(String path,
String contents) |
String |
toString() |
public JschSshClient(org.jclouds.proxy.ProxyConfig proxyConfig,
org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler,
com.google.common.net.HostAndPort socket,
org.jclouds.domain.LoginCredentials loginCredentials,
int timeout)
public void put(String path, String contents)
put in interface org.jclouds.ssh.SshClientprotected <T,C extends JschSshClient.Connection<T>> T acquire(C connection)
public void connect()
connect in interface org.jclouds.ssh.SshClientpublic org.jclouds.io.Payload get(String path)
get in interface org.jclouds.ssh.SshClientpublic void put(String path, org.jclouds.io.Payload contents)
put in interface org.jclouds.ssh.SshClient@PreDestroy public void disconnect()
disconnect in interface org.jclouds.ssh.SshClientprotected JschSshClient.ConnectionWithStreams<com.jcraft.jsch.ChannelExec> execConnection(String command)
public org.jclouds.compute.domain.ExecResponse exec(String command)
exec in interface org.jclouds.ssh.SshClientpublic String getHostAddress()
getHostAddress in interface org.jclouds.ssh.SshClientpublic String getUsername()
getUsername in interface org.jclouds.ssh.SshClientpublic org.jclouds.compute.domain.ExecChannel execChannel(String command)
execChannel in interface org.jclouds.ssh.SshClientCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.