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.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
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
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 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
-