|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSHConsoleRemote
Basic interface to classes implementing a console to a remote command or shell.
Method Summary | |
---|---|
void |
changeStdOut(java.io.OutputStream out)
Changes the output stream where stdout is written to in the underlying session channel. |
void |
close()
Closes the session channel. |
void |
close(boolean waitforcloseconfirm)
Closes the session channel. |
boolean |
command(java.lang.String command)
Runs single command on server. |
java.io.OutputStream |
getStdIn()
Gets the stdin stream of the underlying session channel. |
java.io.InputStream |
getStdOut()
Gets the stdout stream of the underlying session channel. |
boolean |
shell()
Starts an interactive shell on the server, note that no PTY is allocated. |
Method Detail |
---|
boolean command(java.lang.String command)
command
- command line to run
boolean shell()
void close()
void close(boolean waitforcloseconfirm)
void changeStdOut(java.io.OutputStream out)
out
- new stdout streamjava.io.OutputStream getStdIn()
java.io.InputStream getStdOut()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |