Package com.google.gerrit.sshd.commands
Class Query
java.lang.Object
com.google.gerrit.sshd.BaseCommand
com.google.gerrit.sshd.SshCommand
com.google.gerrit.sshd.commands.Query
- All Implemented Interfaces:
DynamicOptions.BeanReceiver
,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.SshCommand
stderr, stdout
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 TypeMethodDescriptionprotected void
parseCommandLine
(DynamicOptions pluginOptions) Parses the command line argument, injecting parsed values into fields.protected void
run()
void
setDynamicBean
(String plugin, DynamicOptions.DynamicBean dynamicBean) Methods inherited from class com.google.gerrit.sshd.SshCommand
start
Methods inherited from class com.google.gerrit.sshd.BaseCommand
destroy, die, die, die, enableGracefulStop, getArguments, getName, getPluginName, getTaskDescription, getTrimmedArguments, newCmdLineParser, onExit, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setInputStream, setOutputStream, startThread, toPrintWriter, usage, writeError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gerrit.server.DynamicOptions.BeanReceiver
getExportedBeanReceiver
-
Constructor Details
-
Query
public Query()
-
-
Method Details
-
run
- Specified by:
run
in classSshCommand
- Throws:
Exception
-
setDynamicBean
- Specified by:
setDynamicBean
in interfaceDynamicOptions.BeanReceiver
-
parseCommandLine
Description copied from class:BaseCommand
Parses the command line argument, injecting parsed values into fields.This method must be explicitly invoked to cause a parse.
- Overrides:
parseCommandLine
in classBaseCommand
- Parameters:
pluginOptions
- which helps to define and parse options provided from plugins- Throws:
BaseCommand.UnloggedFailure
- if the command line arguments were invalid.- See Also:
-
Option
Argument
-