org.apache.accumulo.core.util.shell
Class Shell.CommandFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Shell.CommandFactory
public Shell.CommandFactory()
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.