|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.commons.ssh.Connection
public abstract class Connection
Common interface for SSH connections.
| Constructor Summary | |
|---|---|
Connection()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Closes this connection |
abstract boolean |
isClosed()
Returns true if connection is closed, false
otherwise |
ExecSession |
openExecSession(ExecSessionOptions execSessionOptions)
Opens new command execution session from this connection |
SftpSession |
openSftpSession(SftpSessionOptions sftpSessionOptions)
Opens new sftp session from this connection |
ShellSession |
openShellSession(ShellSessionOptions shellSessionOptions)
Opens new shell session from this connection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection()
| Method Detail |
|---|
public abstract void close()
throws java.io.IOException
java.io.IOException - if an I/O exception occurspublic abstract boolean isClosed()
true if connection is closed, false
otherwise
true if connection is closed, false
otherwise
public ExecSession openExecSession(ExecSessionOptions execSessionOptions)
throws java.io.IOException
execSessionOptions - command execution session options
java.io.IOException - if I/O occurs
public SftpSession openSftpSession(SftpSessionOptions sftpSessionOptions)
throws java.io.IOException
sftpSessionOptions - sftp session options
java.io.IOException - if I/O occurs
public ShellSession openShellSession(ShellSessionOptions shellSessionOptions)
throws java.io.IOException
shellSessionOptions - shell session options
java.io.IOException - if I/O occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||