Class ShellPluginConfigurationCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.ShellPluginConfigurationCommand
-
- Direct Known Subclasses:
FormatterCommand,InterpreterCommand
public abstract class ShellPluginConfigurationCommand extends Shell.Command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intexecute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)org.apache.commons.cli.OptionsgetOptions()static <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 Detail
-
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
public static <T> Class<? extends T> getPluginClass(String tableName, Shell shellState, Class<T> clazz, Property pluginProp)
-
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
-
-