org.apache.accumulo.core.util.shell.commands
Class ShellPluginConfigurationCommand
java.lang.Object
org.apache.accumulo.core.util.shell.Shell.Command
org.apache.accumulo.core.util.shell.commands.ShellPluginConfigurationCommand
- Direct Known Subclasses:
- FormatterCommand, InterpreterCommand
public abstract class ShellPluginConfigurationCommand
- extends Shell.Command
Method Summary |
int |
execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState)
|
org.apache.commons.cli.Options |
getOptions()
|
static
|
getPluginClass(String tableName,
Shell shellState,
Class<T> clazz,
Property pluginProp)
|
int |
numArgs()
If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the Shell.Command.usage() method. |
protected void |
removePlugin(org.apache.commons.cli.CommandLine cl,
Shell shellState,
String tableName)
|
protected void |
setPlugin(org.apache.commons.cli.CommandLine cl,
Shell shellState,
String tableName,
String className)
|
Methods inherited from class org.apache.accumulo.core.util.shell.Shell.Command |
description, getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
execute
public int execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState)
throws Exception
- Specified by:
execute
in class Shell.Command
- Throws:
Exception
setPlugin
protected void setPlugin(org.apache.commons.cli.CommandLine cl,
Shell shellState,
String tableName,
String className)
throws AccumuloException,
AccumuloSecurityException
- Throws:
AccumuloException
AccumuloSecurityException
removePlugin
protected void removePlugin(org.apache.commons.cli.CommandLine cl,
Shell shellState,
String tableName)
throws AccumuloException,
AccumuloSecurityException
- 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:
getOptions
in class Shell.Command
numArgs
public int numArgs()
- Description copied from class:
Shell.Command
- If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the
Shell.Command.usage()
method.
Otherwise, Shell.Command.usage()
does need to be overridden.
- Specified by:
numArgs
in class Shell.Command
Copyright © 2015 Apache Accumulo Project. All rights reserved.