|
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.SSHPersistantConnection
public class SSHPersistantConnection
Class used to establish a persistant ssh connection to a remote server.
| Constructor Summary | |
|---|---|
SSHPersistantConnection()
|
|
| Method Summary | |
|---|---|
void |
close()
Tears down the established SSH session . |
void |
connect()
Creates a SSH tunnel to the remote host. |
void |
createSession(ISSHConnectionInfo sshConnectionInfo,
java.util.List<IForward> forwards)
Creates a new SSH session using the specified ssh connection information. |
java.io.InputStream |
getErrorStream()
Returns the error stream for this tunnel |
java.io.InputStream |
getInputStream()
Returns the InputStream of the connection. |
java.io.OutputStream |
getOutputStream()
Returns the OutputStream of the connection. |
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 SSHPersistantConnection()
| 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 boolean isSessionActive()
true if the session is established,
false otherwise.public void close()
close in interface IBidirectionalConnection
public java.io.InputStream getInputStream()
throws java.io.IOException
IBidirectionalConnection
getInputStream in interface IBidirectionalConnectionjava.io.IOException - thrown if a connection error occurs.
public java.io.OutputStream getOutputStream()
throws java.io.IOException
IBidirectionalConnection
getOutputStream in interface IBidirectionalConnectionjava.io.IOException - thrown if a connection error occurs.
public java.io.InputStream getErrorStream()
throws java.io.IOException
java.io.IOException
public void connect()
throws ProblemException
inStream - The input stream for the tunneloutStream - The output stream for the tunnelerrStream - The error stream for the tunnel
ProblemException - If the tunnel could not successfully be established
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||