public class SshjSshClient extends Object implements org.jclouds.ssh.SshClient
| Modifier and Type | Class and Description |
|---|---|
static interface |
SshjSshClient.Connection<T> |
| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.logging.Logger |
logger |
| Constructor and Description |
|---|
SshjSshClient(org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler,
com.google.common.net.HostAndPort socket,
org.jclouds.domain.LoginCredentials loginCredentials,
int timeout,
com.google.common.base.Optional<com.jcraft.jsch.agentproxy.Connector> agentConnector) |
| Modifier and Type | Method and Description |
|---|---|
protected <T,C extends SshjSshClient.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 SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> |
execConnection() |
org.jclouds.io.Payload |
get(String path) |
String |
getHostAddress() |
String |
getUsername() |
boolean |
isConnected() |
protected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> |
noPTYConnection() |
void |
put(String path,
org.jclouds.io.Payload contents) |
void |
put(String path,
String contents) |
String |
toString() |
public SshjSshClient(org.jclouds.http.handlers.BackoffLimitedRetryHandler backoffLimitedRetryHandler,
com.google.common.net.HostAndPort socket,
org.jclouds.domain.LoginCredentials loginCredentials,
int timeout,
com.google.common.base.Optional<com.jcraft.jsch.agentproxy.Connector> agentConnector)
public void put(String path, String contents)
put in interface org.jclouds.ssh.SshClientprotected <T,C extends SshjSshClient.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.SshClientpublic boolean isConnected()
isConnected in interface org.jclouds.ssh.SshClientprotected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> execConnection()
public org.jclouds.compute.domain.ExecResponse exec(String command)
exec in interface org.jclouds.ssh.SshClientprotected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> noPTYConnection()
public org.jclouds.compute.domain.ExecChannel execChannel(String command)
execChannel in interface org.jclouds.ssh.SshClientpublic String getHostAddress()
getHostAddress in interface org.jclouds.ssh.SshClientpublic String getUsername()
getUsername in interface org.jclouds.ssh.SshClientCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.