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:
org.apache.sshd.server.Command
,org.apache.sshd.server.CommandLifecycle
public class Query extends SshCommand
-
-
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
ENC, err, in, out, STATUS_NOT_ADMIN
-
-
Constructor Summary
Constructors Constructor Description Query()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
parseCommandLine()
Parses the command line argument, injecting parsed values into fields.protected void
run()
-
Methods inherited from class com.google.gerrit.sshd.SshCommand
start
-
Methods inherited from class com.google.gerrit.sshd.BaseCommand
destroy, die, die, getArguments, getName, getPluginName, getTaskDescription, getTrimmedArguments, newCmdLineParser, onExit, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setInputStream, setOutputStream, startThread, toPrintWriter, usage, writeError
-
-
-
-
Method Detail
-
run
protected void run() throws Exception
- Specified by:
run
in classSshCommand
- Throws:
Exception
-
parseCommandLine
protected void parseCommandLine() throws BaseCommand.UnloggedFailure
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
- Throws:
BaseCommand.UnloggedFailure
- if the command line arguments were invalid.- See Also:
Option
,Argument
-
-