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 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 EnvironmentIOException - If failed to startvoid destroy(ChannelSession channel) throws Exception
channel - The ChannelSession through which the command has been
receivedException - if failed to destroyCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.