Modifier and Type | Class and Description |
---|---|
static interface |
SshjSshClient.Connection<T> |
SshClient.Factory
Constructor and Description |
---|
SshjSshClient(BackoffLimitedRetryHandler backoffLimitedRetryHandler,
com.google.common.net.HostAndPort socket,
LoginCredentials loginCredentials,
int timeout) |
Modifier and Type | Method and Description |
---|---|
protected <T,C extends SshjSshClient.Connection<T>> |
acquire(C connection) |
void |
connect() |
void |
disconnect() |
ExecResponse |
exec(String command)
Execute a process and block until it is complete
|
ExecChannel |
execChannel(String command)
Execute a process and allow the user to interact with it.
|
protected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> |
execConnection() |
Payload |
get(String path) |
String |
getHostAddress() |
String |
getUsername() |
protected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> |
noPTYConnection() |
void |
put(String path,
Payload contents) |
void |
put(String path,
String contents) |
String |
toString() |
@Named(value="jclouds.ssh") protected Logger logger
public SshjSshClient(BackoffLimitedRetryHandler backoffLimitedRetryHandler, com.google.common.net.HostAndPort socket, LoginCredentials loginCredentials, int timeout)
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)
SshClient
protected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> noPTYConnection()
public ExecChannel execChannel(String command)
SshClient
SshClient.disconnect()
is
called.execChannel
in interface SshClient
command
- command line to invokepublic String getHostAddress()
getHostAddress
in interface SshClient
public String getUsername()
getUsername
in interface SshClient
Copyright © 2009-2013 jclouds. All Rights Reserved.