org.apache.accumulo.core.util.shell.commands
Class GrantCommand

java.lang.Object
  extended by org.apache.accumulo.core.util.shell.Shell.Command
      extended by org.apache.accumulo.core.util.shell.commands.TableOperation
          extended by org.apache.accumulo.core.util.shell.commands.GrantCommand

public class GrantCommand
extends TableOperation


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.util.shell.Shell.Command
Shell.Command.CompletionSet
 
Field Summary
 
Fields inherited from class org.apache.accumulo.core.util.shell.commands.TableOperation
optNamespace, optTableName, optTablePattern
 
Constructor Summary
GrantCommand()
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.accumulo.core.util.shell.commands.TableOperation
disableUnflaggedTableOptions, force, noForce, pruneTables
 
Methods inherited from class org.apache.accumulo.core.util.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrantCommand

public GrantCommand()
Method Detail

execute

public int execute(String fullCommand,
                   org.apache.commons.cli.CommandLine cl,
                   Shell shellState)
            throws Exception
Overrides:
execute in class TableOperation
Throws:
Exception

doTableOp

protected void doTableOp(Shell shellState,
                         String tableName)
                  throws Exception
Specified by:
doTableOp in class TableOperation
Throws:
Exception

description

public String description()
Overrides:
description in class TableOperation

usage

public String usage()
Overrides:
usage in class TableOperation

registerCompletion

public void registerCompletion(Token root,
                               Map<Shell.Command.CompletionSet,Set<String>> completionSet)
Overrides:
registerCompletion in class TableOperation

getOptions

public org.apache.commons.cli.Options getOptions()
Overrides:
getOptions in class TableOperation

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.

Overrides:
numArgs in class TableOperation


Copyright © 2015 Apache Accumulo Project. All rights reserved.