public class ProcessShellFactory.ProcessShell extends java.lang.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.
|
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.
|
public void start(java.util.Map<java.lang.String,java.lang.String> env)
throws java.io.IOException
InvertedShellstart in interface InvertedShelljava.io.IOExceptionpublic java.io.OutputStream getInputStream()
InvertedShellgetInputStream in interface InvertedShellpublic java.io.InputStream getOutputStream()
InvertedShellgetOutputStream in interface InvertedShellpublic java.io.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.