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
InvertedShell
start
in interface InvertedShell
IOException
public OutputStream getInputStream()
InvertedShell
getInputStream
in interface InvertedShell
public InputStream getOutputStream()
InvertedShell
getOutputStream
in interface InvertedShell
public InputStream getErrorStream()
InvertedShell
getErrorStream
in interface InvertedShell
public boolean isAlive()
InvertedShell
isAlive
in interface InvertedShell
public int exitValue()
InvertedShell
exitValue
in interface InvertedShell
public void destroy()
InvertedShell
destroy
in interface InvertedShell
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.