public class ProcessShellFactory.ProcessShell extends Object implements InvertedShell
| Modifier and Type | Class and Description |
|---|---|
protected class |
ProcessShellFactory.ProcessShell.TtyFilterInputStream |
protected class |
ProcessShellFactory.ProcessShell.TtyFilterOutputStream |
| Constructor and Description |
|---|
ProcessShellFactory.ProcessShell() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the shell.
|
int |
exitValue()
Retrieve the exit value of the shell.
|
InputStream |
getErrorStream()
Return an InputStream representing the error stream of the shell.
|
OutputStream |
getInputStream()
Returns the output stream used to feed the shell.
|
InputStream |
getOutputStream()
Return an InputStream representing the output stream of the shell.
|
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.
|
public void start(Map<String,String> env) throws IOException
InvertedShellstart in interface InvertedShellIOExceptionpublic OutputStream getInputStream()
InvertedShellgetInputStream in interface InvertedShellpublic InputStream getOutputStream()
InvertedShellgetOutputStream in interface InvertedShellpublic InputStream getErrorStream()
InvertedShellgetErrorStream in interface InvertedShellpublic boolean isAlive()
InvertedShellisAlive in interface InvertedShellpublic int exitValue()
InvertedShellexitValue in interface InvertedShellpublic void destroy()
InvertedShelldestroy in interface InvertedShellCopyright © 2008–2014 The Apache Software Foundation. All rights reserved.