org.apache.accumulo.core.util.shell.commands
public abstract class ShellPluginConfigurationCommand extends Shell.Command
Shell.Command.CompletionSet
Modifier and Type | Method and Description |
---|---|
int |
execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState) |
org.apache.commons.cli.Options |
getOptions() |
static <T> Class<? extends T> |
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) |
description, getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
execute
in class Shell.Command
Exception
protected void setPlugin(org.apache.commons.cli.CommandLine cl, Shell shellState, String tableName, String className) throws AccumuloException, AccumuloSecurityException
protected void removePlugin(org.apache.commons.cli.CommandLine cl, Shell shellState, String tableName) throws AccumuloException, AccumuloSecurityException
public static <T> Class<? extends T> getPluginClass(String tableName, Shell shellState, Class<T> clazz, Property pluginProp)
public org.apache.commons.cli.Options getOptions()
getOptions
in class Shell.Command
public int numArgs()
Shell.Command
Shell.Command.usage()
method.
Otherwise, Shell.Command.usage()
does need to be overridden.numArgs
in class Shell.Command
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.