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

java.lang.Object
  extended by org.apache.accumulo.core.util.shell.Shell.CommandFactory
Enclosing class:
Shell

public static class Shell.CommandFactory
extends java.lang.Object

Command Factory is a class that holds the command table, which is a mapping from a string representing the command to a class. It has methods to build the command table from the classes in this file and a currently unused method to build the command table from XML. The classes that the table returns all extend Shell$Command class.


Nested Class Summary
static class Shell.CommandFactory.CodeType
           
 
Constructor Summary
Shell.CommandFactory()
           
 
Method Summary
 void buildCommands()
           
 void buildCommandsFromXML(java.io.File file)
           
 Shell.Command getCommandByName(java.lang.String command)
           
 java.util.Map<java.lang.String,org.apache.accumulo.core.util.shell.Shell.CommandFactory.Attributes> getCommandTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shell.CommandFactory

public Shell.CommandFactory()
Method Detail

getCommandTable

public java.util.Map<java.lang.String,org.apache.accumulo.core.util.shell.Shell.CommandFactory.Attributes> getCommandTable()

buildCommandsFromXML

public void buildCommandsFromXML(java.io.File file)
                          throws ShellCommandException
Throws:
ShellCommandException

getCommandByName

public Shell.Command getCommandByName(java.lang.String command)
                               throws ShellCommandException
Throws:
ShellCommandException

buildCommands

public void buildCommands()


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