public interface CommandLifecycle
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(ChannelSession channel)
This method is called by the SSH server to destroy the command because the client has disconnected somehow.
|
void |
start(ChannelSession channel,
Environment env)
Starts the command execution.
|
void start(ChannelSession channel, Environment env) throws java.io.IOException
Runnable, and this method should spawn a new thread like:
Thread(this).start();
channel - The ChannelSession through which the command has been receivedenv - The Environmentjava.io.IOException - If failed to startvoid destroy(ChannelSession channel) throws java.lang.Exception
channel - The ChannelSession through which the command has been receivedjava.lang.Exception - if failed to destroy