public interface SshClient
Modifier and Type | Interface and Description |
---|---|
static interface |
SshClient.Factory |
Modifier and Type | Method and Description |
---|---|
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.
|
Payload |
get(String path) |
String |
getHostAddress() |
String |
getUsername() |
boolean |
isConnected() |
void |
put(String path,
Payload contents) |
void |
put(String path,
String contents) |
String getUsername()
String getHostAddress()
ExecResponse exec(String command)
command
- command line to invokeExecChannel execChannel(String command)
command
- command line to invokevoid connect()
void disconnect()
boolean isConnected()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.