Package org.jclouds.ssh
Interface SshClient
-
- All Known Implementing Classes:
JschSshClient
,SshjSshClient
public interface SshClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SshClient.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
connect()
void
disconnect()
ExecResponse
exec(String command)
Execute a process and block until it is completeExecChannel
execChannel(String command)
Execute a process and allow the user to interact with it.Payload
get(String path)
String
getHostAddress()
String
getUsername()
boolean
isConnected()
void
put(String path, String contents)
void
put(String path, Payload contents)
-
-
-
Method Detail
-
getUsername
String getUsername()
-
getHostAddress
String getHostAddress()
-
exec
ExecResponse exec(String command)
Execute a process and block until it is complete- Parameters:
command
- command line to invoke- Returns:
- output of the command
-
execChannel
ExecChannel execChannel(String command)
Execute a process and allow the user to interact with it.- Parameters:
command
- command line to invoke- Returns:
- reference to the running process
- Since:
- 1.5.0
-
connect
void connect()
-
disconnect
void disconnect()
-
isConnected
boolean isConnected()
-
-