org.jclouds.sshj
Class SshjSshClient
java.lang.Object
org.jclouds.sshj.SshjSshClient
- All Implemented Interfaces:
- SshClient
public class SshjSshClient
- extends Object
- implements SshClient
This class needs refactoring. It is not thread safe.
- Author:
- Adrian Cole
logger
@Named(value="jclouds.ssh")
protected Logger logger
SshjSshClient
public SshjSshClient(BackoffLimitedRetryHandler backoffLimitedRetryHandler,
IPSocket socket,
int timeout,
String username,
String password,
byte[] privateKey)
put
public void put(String path,
String contents)
- Specified by:
put
in interface SshClient
acquire
protected <T,C extends SshjSshClient.Connection<T>> T acquire(C connection)
connect
@PostConstruct
public void connect()
- Specified by:
connect
in interface SshClient
get
public Payload get(String path)
- Specified by:
get
in interface SshClient
put
public void put(String path,
Payload contents)
- Specified by:
put
in interface SshClient
toString
public String toString()
- Overrides:
toString
in class Object
disconnect
@PreDestroy
public void disconnect()
- Specified by:
disconnect
in interface SshClient
execConnection
protected SshjSshClient.Connection<net.schmizz.sshj.connection.channel.direct.Session> execConnection()
exec
public ExecResponse exec(String command)
- Specified by:
exec
in interface SshClient
getHostAddress
public String getHostAddress()
- Specified by:
getHostAddress
in interface SshClient
getUsername
public String getUsername()
- Specified by:
getUsername
in interface SshClient
Copyright © 2009-2011 jclouds. All Rights Reserved.