org.apache.accumulo.core.util.shell.commands
public class GrantCommand extends TableOperation
Shell.Command.CompletionSet
optNamespace, optTableName, optTablePattern
Constructor and Description |
---|
GrantCommand() |
Modifier and Type | Method and Description |
---|---|
String |
description() |
protected void |
doTableOp(Shell shellState,
String tableName) |
int |
execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState) |
org.apache.commons.cli.Options |
getOptions() |
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. |
void |
registerCompletion(Token root,
Map<Shell.Command.CompletionSet,Set<String>> completionSet) |
String |
usage() |
disableUnflaggedTableOptions, force, noForce, pruneTables
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
execute
in class TableOperation
Exception
protected void doTableOp(Shell shellState, String tableName) throws Exception
doTableOp
in class TableOperation
Exception
public String description()
description
in class TableOperation
public String usage()
usage
in class TableOperation
public void registerCompletion(Token root, Map<Shell.Command.CompletionSet,Set<String>> completionSet)
registerCompletion
in class TableOperation
public org.apache.commons.cli.Options getOptions()
getOptions
in class TableOperation
public int numArgs()
Shell.Command
Shell.Command.usage()
method.
Otherwise, Shell.Command.usage()
does need to be overridden.numArgs
in class TableOperation
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.