|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InvertedShell
This shell have inverted streams, such as the one obtained when launching a
new Process from java. This interface is meant to be used with
InvertedShellWrapper class as an implementation of
Factory.
| Method Summary | |
|---|---|
void |
destroy()
Destroy the shell. |
int |
exitValue()
Retrieve the exit value of the shell. |
java.io.InputStream |
getErrorStream()
Return an InputStream representing the error stream of the shell. |
java.io.OutputStream |
getInputStream()
Returns the output stream used to feed the shell. |
java.io.InputStream |
getOutputStream()
Return an InputStream representing the output stream of the shell. |
boolean |
isAlive()
Check if the underlying shell is still alive |
void |
start(java.util.Map<java.lang.String,java.lang.String> env)
Starts the shell and will make the streams available for the ssh server to retrieve and use. |
| Method Detail |
|---|
void start(java.util.Map<java.lang.String,java.lang.String> env)
throws java.io.IOException
env -
java.lang.Exception
java.io.IOExceptionjava.io.OutputStream getInputStream()
java.io.InputStream getOutputStream()
java.io.InputStream getErrorStream()
boolean isAlive()
int exitValue()
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||