Class ShellPluginConfigurationCommand
java.lang.Object
org.apache.accumulo.shell.Shell.Command
org.apache.accumulo.shell.commands.ShellPluginConfigurationCommand
- Direct Known Subclasses:
FormatterCommand,InterpreterCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet -
Method Summary
Modifier and TypeMethodDescriptionintorg.apache.commons.cli.Optionsstatic <T> Class<? extends T>getPluginClass(String tableName, Shell shellState, Class<T> clazz, Property pluginProp) intnumArgs()If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method.protected voidremovePlugin(org.apache.commons.cli.CommandLine cl, Shell shellState, String tableName) protected voidsetPlugin(org.apache.commons.cli.CommandLine cl, Shell shellState, String tableName, String className) Methods inherited from class org.apache.accumulo.shell.Shell.Command
description, getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
-
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
-
setPlugin
protected void setPlugin(org.apache.commons.cli.CommandLine cl, Shell shellState, String tableName, String className) throws AccumuloException, AccumuloSecurityException -
removePlugin
protected void removePlugin(org.apache.commons.cli.CommandLine cl, Shell shellState, String tableName) throws AccumuloException, AccumuloSecurityException -
getPluginClass
-
getOptions
public org.apache.commons.cli.Options getOptions()- Overrides:
getOptionsin 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
-