public interface RemoteConnectionManager
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
executeCommand(java.lang.String command)
Execute the command in the remote host.
|
java.lang.String[] |
executeCommand(java.lang.String command,
java.lang.String input)
Execute the command in the remote host.
|
java.lang.String[] |
executeCommandASynchronously(java.lang.String command)
Execute the command in the remote host.
|
java.lang.String[] |
executeCommandASynchronously(java.lang.String command,
java.lang.String input)
Execute the command in the remote host.
|
java.lang.String |
getFileFromRemoteHost(java.lang.String local_file,
java.lang.String remote_file)
Get the remote file and store it in the local host
|
boolean |
hasAccess()
Check if the connection information is valid and the user has access to the specified cluster with the provided password
|
java.lang.String |
sendFileToRemoteHost(java.lang.String local_file,
java.lang.String remote_file)
Send the local file to the remote host
|
boolean hasAccess()
java.lang.String[] executeCommand(java.lang.String command)
command - shell command to executejava.lang.String[] executeCommand(java.lang.String command,
java.lang.String input)
command - shell command to executeinput - Standard inputjava.lang.String[] executeCommandASynchronously(java.lang.String command)
command - shell command to executejava.lang.String[] executeCommandASynchronously(java.lang.String command,
java.lang.String input)
command - shell command to executeinput - Standard inputjava.lang.String getFileFromRemoteHost(java.lang.String local_file,
java.lang.String remote_file)
local_file - Local pathremote_file - Remote pathjava.lang.String sendFileToRemoteHost(java.lang.String local_file,
java.lang.String remote_file)
local_file - Local pathremote_file - Remote path