org.apache.accumulo.core.util.shell
Class Shell.TableOperation

java.lang.Object
  extended by org.apache.accumulo.core.util.shell.Shell.Command
      extended by org.apache.accumulo.core.util.shell.Shell.TableOperation
Direct Known Subclasses:
CompactCommand, FlushCommand, OfflineCommand, OnlineCommand
Enclosing class:
Shell

public abstract static class Shell.TableOperation
extends Shell.Command


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.util.shell.Shell.Command
Shell.Command.CompletionSet
 
Constructor Summary
Shell.TableOperation()
           
 
Method Summary
 String description()
           
protected abstract  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()
           
 
Methods inherited from class org.apache.accumulo.core.util.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shell.TableOperation

public Shell.TableOperation()
Method Detail

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

doTableOp

protected abstract void doTableOp(Shell shellState,
                                  String tableName)
                           throws AccumuloException,
                                  AccumuloSecurityException,
                                  TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

description

public String description()
Specified by:
description in class Shell.Command

getOptions

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

numArgs

public int numArgs()
Specified by:
numArgs in class Shell.Command


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.