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 |
|---|
ProcessShell() |
| 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.
|
public void start(Map<String,String> env) throws IOException
InvertedShellstart in interface InvertedShellenv - The environmentIOException - if failed to startpublic OutputStream getInputStream()
InvertedShellgetInputStream in interface InvertedShellOutputStream used to feed the shellpublic InputStream getOutputStream()
getOutputStream in interface InvertedShellInputStream representing the output stream of the shellpublic InputStream getErrorStream()
getErrorStream in interface InvertedShellInputStream representing the error stream of the shellpublic boolean isAlive()
InvertedShellisAlive in interface InvertedShelltrue if alivepublic int exitValue()
InvertedShellexitValue in interface InvertedShellpublic void destroy()
InvertedShelldestroy in interface InvertedShellCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.