Modifier and Type | Class and Description |
---|---|
static interface |
SshjSshClient.Connection<T> |
SshClient.Factory
Constructor and Description |
---|
SshjSshClient(BackoffLimitedRetryHandler backoffLimitedRetryHandler,
IPSocket socket,
int timeout,
String username,
String password,
byte[] privateKey) |
Modifier and Type | Method and Description |
---|---|
protected <T,C extends SshjSshClient.Connection<T>> |
acquire(C connection) |
void |
connect() |
void |
disconnect() |
ExecResponse |
exec(String command) |
protected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> |
execConnection() |
Payload |
get(String path) |
String |
getHostAddress() |
String |
getUsername() |
void |
put(String path,
Payload contents) |
void |
put(String path,
String contents) |
String |
toString() |
public SshjSshClient(BackoffLimitedRetryHandler backoffLimitedRetryHandler, IPSocket socket, int timeout, String username, String password, byte[] privateKey)
protected <T,C extends SshjSshClient.Connection<T>> T acquire(C connection)
@PreDestroy public void disconnect()
disconnect
in interface SshClient
protected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> execConnection()
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.