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