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

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

public class ExtensionCommand
extends Shell.Command


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.util.shell.Shell.Command
Shell.Command.CompletionSet
 
Field Summary
protected  org.apache.commons.cli.Option disable
           
protected  org.apache.commons.cli.Option enable
           
protected  org.apache.commons.cli.Option list
           
 
Constructor Summary
ExtensionCommand()
           
 
Method Summary
 String description()
           
 int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)
           
 String getName()
           
 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.
 
Methods inherited from class org.apache.accumulo.core.util.shell.Shell.Command
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
 

Field Detail

enable

protected org.apache.commons.cli.Option enable

disable

protected org.apache.commons.cli.Option disable

list

protected org.apache.commons.cli.Option list
Constructor Detail

ExtensionCommand

public ExtensionCommand()
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

description

public String description()
Specified by:
description 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

getName

public String getName()
Overrides:
getName in class Shell.Command

getOptions

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


Copyright © 2015 Apache Accumulo Project. All rights reserved.