Package com.google.gerrit.sshd.commands
Class ReviewCommand
- java.lang.Object
-
- com.google.gerrit.sshd.BaseCommand
-
- com.google.gerrit.sshd.SshCommand
-
- com.google.gerrit.sshd.commands.ReviewCommand
-
- All Implemented Interfaces:
org.apache.sshd.server.command.Command
,org.apache.sshd.server.command.CommandLifecycle
public class ReviewCommand extends SshCommand
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReviewCommand.LabelHandler
-
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 Constructor Description ReviewCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.gerrit.util.cli.CmdLineParser
newCmdLineParser(Object options)
Construct a new parser for this command's received command line.protected void
parseCommandLine(DynamicOptions pluginOptions)
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, die, enableGracefulStop, getArguments, getName, getPluginName, getTaskDescription, getTrimmedArguments, onExit, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setInputStream, setOutputStream, startThread, toPrintWriter, usage, writeError
-
-
-
-
Method Detail
-
newCmdLineParser
protected final com.google.gerrit.util.cli.CmdLineParser newCmdLineParser(Object options)
Description copied from class:BaseCommand
Construct a new parser for this command's received command line.- Overrides:
newCmdLineParser
in classBaseCommand
-
run
protected void run() throws BaseCommand.UnloggedFailure
- Specified by:
run
in classSshCommand
- Throws:
BaseCommand.UnloggedFailure
-
parseCommandLine
protected void parseCommandLine(DynamicOptions pluginOptions) 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
- 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
-
-