Class ExtensionCommand
java.lang.Object
org.apache.accumulo.shell.Shell.Command
org.apache.accumulo.shell.commands.ExtensionCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetName()org.apache.commons.cli.OptionsintnumArgs()If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method.Methods inherited from class org.apache.accumulo.shell.Shell.Command
getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
-
Field Details
-
enable
protected org.apache.commons.cli.Option enable -
disable
protected org.apache.commons.cli.Option disable -
list
protected org.apache.commons.cli.Option list
-
-
Constructor Details
-
ExtensionCommand
public ExtensionCommand()
-
-
Method Details
-
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception - Specified by:
executein classShell.Command- Throws:
Exception
-
description
- Specified by:
descriptionin classShell.Command
-
numArgs
public int numArgs()Description copied from class:Shell.CommandIf the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method. Otherwise,Shell.Command.usage()does need to be overridden.- Specified by:
numArgsin classShell.Command
-
getName
- Overrides:
getNamein classShell.Command
-
getOptions
public org.apache.commons.cli.Options getOptions()- Overrides:
getOptionsin classShell.Command
-