|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.batch.SSHConnection
public class SSHConnection
Class used to establish an ssh connection to a remote server.
| Constructor Summary | |
|---|---|
SSHConnection()
|
|
| Method Summary | |
|---|---|
void |
createSession(ISSHConnectionInfo sshConnectionInfo,
java.util.List<IForward> forwards)
Creates a new SSH session using the specified ssh connection information. |
void |
endSession()
Tears down the established SSH session . |
java.lang.String |
execCommand(java.lang.String command)
Execute a command on the remote host and returns the output. |
java.lang.String |
execCommand(java.lang.String command,
java.io.InputStream stdin)
Execute a command on the remote host and returns the output. |
boolean |
isSessionActive()
Test if the session to the server is established. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSHConnection()
| Method Detail |
|---|
public void createSession(ISSHConnectionInfo sshConnectionInfo,
java.util.List<IForward> forwards)
throws ProblemException
sshConnectionInfo - the connection information describing the ssh
session.forwards - list of port forwards to create.
ProblemException - If the ssh connection cannot be establishedpublic void endSession()
public boolean isSessionActive()
true if the session is established,
false otherwise.
public java.lang.String execCommand(java.lang.String command)
throws ProblemException
command - The command to be executed on the remote host.
null is returned.
ProblemException - If the command is not successfully executed.
public java.lang.String execCommand(java.lang.String command,
java.io.InputStream stdin)
throws ProblemException
command - The command to be executed on the remote host.stdin -
null is returned.
ProblemException - If the command is not successfully executed.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||