Class StreamEvents

  • All Implemented Interfaces:
    org.apache.sshd.server.command.Command, org.apache.sshd.server.command.CommandLifecycle

    public final class StreamEvents
    extends BaseCommand
    • Constructor Detail

      • StreamEvents

        public StreamEvents()
    • Method Detail

      • start

        public void start​(org.apache.sshd.server.channel.ChannelSession channel,
                          org.apache.sshd.server.Environment env)
                   throws IOException
        Throws:
        IOException
      • onExit

        protected void onExit​(int rc)
        Description copied from class: BaseCommand
        Terminate this command and return a result code to the remote client.

        Commands should invoke this at most once. Once invoked, the command may lose access to request based resources as any callbacks previously registered with RequestCleanup will fire.

        Overrides:
        onExit in class BaseCommand
        Parameters:
        rc - exit code for the remote client.
      • destroy

        public void destroy​(org.apache.sshd.server.channel.ChannelSession channel)
        Specified by:
        destroy in interface org.apache.sshd.server.command.CommandLifecycle
        Overrides:
        destroy in class BaseCommand