Class StreamEvents

java.lang.Object
com.google.gerrit.sshd.BaseCommand
com.google.gerrit.sshd.commands.StreamEvents
All Implemented Interfaces:
org.apache.sshd.server.command.Command, org.apache.sshd.server.command.CommandDirectErrorStreamAware, org.apache.sshd.server.command.CommandDirectInputStreamAware, org.apache.sshd.server.command.CommandDirectOutputStreamAware, org.apache.sshd.server.command.CommandDirectStreamsAware, org.apache.sshd.server.command.CommandLifecycle

public final class StreamEvents extends BaseCommand
  • Constructor Details

    • StreamEvents

      public StreamEvents()
  • Method Details

    • 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