| Modifier and Type | Field and Description |
|---|---|
| private ChannelSession | |
| private String | |
| private final List | |
| private TtyFilterInputStream | |
| private TtyFilterOutputStream | |
| private TtyFilterInputStream | |
| private Process | |
| private ServerSession |
| Access | Constructor and Description |
|---|---|
| public | ProcessShell(String...
The command components which when joined (with space separator) create the full command to be
executed by the shell command)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy(ChannelSession
The channel)ChannelSession through which the command has been receivedImplements org. This method is called by the SSH server to destroy the command because the client has disconnected somehow. |
| public int | exitValue()
Implements org. Retrieve the exit value of the shell. |
| public InputStream | |
| public OutputStream | getInputStream()
Implements org. Returns the output stream used to feed the shell. |
| public InputStream | |
| public ChannelSession | |
| public ServerSession | |
| public boolean | isAlive()
Implements org. Check if the underlying shell is still alive |
| protected Map | |
| protected Map | |
| public void | setSession(ServerSession
The session)ServerSession in which this shell will be executed.Implements org.
|
| public void | start(ChannelSession
The channel, Environment ChannelSession through which the command has been receivedThe env)EnvironmentImplements org. Starts the command execution. |
| public String |
| channelSession | back to summary |
|---|---|
| private ChannelSession channelSession | |
| cmdValue | back to summary |
|---|---|
| private String cmdValue | |
| command | back to summary |
|---|---|
| private final List<String> command | |
| err | back to summary |
|---|---|
| private TtyFilterInputStream err | |
| in | back to summary |
|---|---|
| private TtyFilterOutputStream in | |
| out | back to summary |
|---|---|
| private TtyFilterInputStream out | |
| process | back to summary |
|---|---|
| private Process process | |
| session | back to summary |
|---|---|
| private ServerSession session | |
| ProcessShell | back to summary |
|---|---|
public ProcessShell(String... command)
| |
| ProcessShell | back to summary |
|---|---|
| public ProcessShell(Collection<String> command) | |
| destroy | back to summary |
|---|---|
| public void destroy(ChannelSession channel) Implements org. Doc from org. This method is called by the SSH server to destroy the command because the client has disconnected somehow.
| |
| exitValue | back to summary |
|---|---|
| public int exitValue() Implements org. Doc from org. Retrieve the exit value of the shell. This method must only be called when the shell is not alive anymore.
| |
| getErrorStream | back to summary |
|---|---|
| public InputStream getErrorStream() Implements org.
| |
| getInputStream | back to summary |
|---|---|
| public OutputStream getInputStream() Implements org. Doc from org. Returns the output stream used to feed the shell. This method is called after the shell has been started.
| |
| getOutputStream | back to summary |
|---|---|
| public InputStream getOutputStream() Implements org.
| |
| getServerChannelSession | back to summary |
|---|---|
| public ChannelSession getServerChannelSession() Implements org.
| |
| getServerSession | back to summary |
|---|---|
| public ServerSession getServerSession() Implements org.
| |
| isAlive | back to summary |
|---|---|
| public boolean isAlive() Implements org. Doc from org. Check if the underlying shell is still alive
| |
| resolveShellEnvironment | back to summary |
|---|---|
| protected Map | |
| resolveShellTtyOptions | back to summary |
|---|---|
| protected Map | |
| setSession | back to summary |
|---|---|
| public void setSession(ServerSession session) Implements org.
| |
| start | back to summary |
|---|---|
| public void start(ChannelSession channel, Environment env) throws IOException Implements org. Doc from org. Starts the command execution. All streams must have been set before calling this method. The command
should implement
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |