public interface InvertedShell
Process from java. This interface is meant to be used with
InvertedShellWrapper class as an implementation of
Factory.| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the shell.
|
int |
exitValue()
Retrieve the exit value of the shell.
|
InputStream |
getErrorStream() |
OutputStream |
getInputStream()
Returns the output stream used to feed the shell.
|
InputStream |
getOutputStream() |
boolean |
isAlive()
Check if the underlying shell is still alive
|
void |
start(Map<String,String> env)
Starts the shell and will make the streams available for
the ssh server to retrieve and use.
|
void start(Map<String,String> env) throws IOException
env - The environmentIOException - if failed to startOutputStream getInputStream()
OutputStream used to feed the shellInputStream getOutputStream()
InputStream representing the output stream of the shellInputStream getErrorStream()
InputStream representing the error stream of the shellboolean isAlive()
true if aliveint exitValue()
void destroy()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.