Package com.google.gerrit.sshd.commands
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.CommandLifecycle
public final class StreamEvents extends BaseCommand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.sshd.BaseCommand
BaseCommand.CommandRunnable, BaseCommand.Failure, BaseCommand.ProjectCommandRunnable, BaseCommand.UnloggedFailure
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.sshd.BaseCommand
cleanup, dynamicBeans, ENC, err, exit, in, injector, out, STATUS_NOT_ADMIN, user
-
-
Constructor Summary
Constructors Constructor Description StreamEvents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy(org.apache.sshd.server.channel.ChannelSession channel)
protected void
onExit(int rc)
Terminate this command and return a result code to the remote client.void
start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env)
-
Methods inherited from class com.google.gerrit.sshd.BaseCommand
die, die, die, enableGracefulStop, getArguments, getName, getPluginName, getTaskDescription, getTrimmedArguments, newCmdLineParser, parseCommandLine, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setInputStream, setOutputStream, startThread, toPrintWriter, usage, writeError
-
-
-
-
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 classBaseCommand
- Parameters:
rc
- exit code for the remote client.
-
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession channel)
- Specified by:
destroy
in interfaceorg.apache.sshd.server.command.CommandLifecycle
- Overrides:
destroy
in classBaseCommand
-
-