public interface InvertedShell extends SessionHolder<ServerSession>, ServerSessionHolder, CommandLifecycle, SessionAware
Process from java. This
interface is meant to be used with InvertedShellWrapper class as an implementation of
Factory.| Modifier and Type | Method and Description |
|---|---|
int |
exitValue()
Retrieve the exit value of the shell.
|
ChannelSession |
getChannelSession() |
java.io.InputStream |
getErrorStream() |
java.io.OutputStream |
getInputStream()
Returns the output stream used to feed the shell.
|
java.io.InputStream |
getOutputStream() |
default ServerSession |
getSession() |
boolean |
isAlive()
Check if the underlying shell is still alive
|
getSessionContextgetServerSessiondestroy, startsetSessiondefault ServerSession getSession()
getSession in interface SessionHolder<ServerSession>ChannelSession getChannelSession()
ChannelSession instance through which the shell was created - may be null if shell
not started yetjava.io.OutputStream getInputStream()
OutputStream used to feed the shelljava.io.InputStream getOutputStream()
InputStream representing the output stream of the shelljava.io.InputStream getErrorStream()
InputStream representing the error stream of the shellboolean isAlive()
true if aliveint exitValue()