Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

Public Member Functions | Package Functions | Package Attributes

com::trilead::ssh2::Session Class Reference

Collaboration diagram for com::trilead::ssh2::Session:
Collaboration graph

List of all members.

Public Member Functions

void close ()
void execCommand (String cmd) throws IOException
String getExitSignal ()
Integer getExitStatus ()
InputStream getStderr ()
OutputStream getStdin ()
InputStream getStdout ()
void ping () throws IOException
void requestDumbPTY () throws IOException
void requestPTY (String term) throws IOException
void requestPTY (String term, int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels, byte[] terminal_modes) throws IOException
void requestX11Forwarding (String hostname, int port, byte[] cookie, boolean singleConnection) throws IOException
void startShell () throws IOException
void startSubSystem (String name) throws IOException
int waitForCondition (int condition_set, long timeout) throws InterruptedException
int waitUntilDataAvailable (long timeout) throws IOException, InterruptedException

Package Functions

 Session (ChannelManager cm, SecureRandom rnd) throws IOException

Package Attributes

ChannelManager cm
Channel cn
boolean flag_closed = false
boolean flag_execution_started = false
boolean flag_pty_requested = false
boolean flag_x11_requested = false
final SecureRandom rnd
String x11FakeCookie = null

Detailed Description

A Session is a remote execution of a program. "Program" means in this context either a shell, an application or a system command. The program may or may not have a tty. Only one single program can be started on a session. However, multiple sessions can be active simultaneously.

Christian Plattner, plattner@trilead.com
Session.java,v 1.2 2008/03/03 07:01:36 cplattne Exp

Definition at line 23 of file Session.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index