|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.CommandDispatcher
public class CommandDispatcher
This is the main class of the archive. It dispatches the processing of the command to the right class. The available commands in the current archive are retrieved by introspection of the archive.
Field Summary | |
---|---|
private static java.lang.String |
COMMAND_DEFINITIONS
File containing all command definitions. |
private static java.util.TreeMap |
commands
List of commands. |
Constructor Summary | |
---|---|
protected |
CommandDispatcher()
Dummy constructor to avoid the class from being used in any other way than calling the CommandDispatcher.main method. |
Method Summary | |
---|---|
private static void |
findCommands()
Retrieves the list of available commands. |
static java.lang.String[] |
getAvailableCommands()
Returns the names of the available commands in the archive. |
static Command |
getCommand(java.lang.String name)
Returns an instance of Command. |
private static java.lang.String |
getRadix(java.lang.String fqn)
Gets the radix of a given function. |
static void |
main(java.lang.String[] args)
Main method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String COMMAND_DEFINITIONS
private static java.util.TreeMap commands
Constructor Detail |
---|
protected CommandDispatcher()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- arguments of the command, including the command itself at the first position.public static Command getCommand(java.lang.String name)
name
- the name of the command.
public static java.lang.String[] getAvailableCommands()
private static java.lang.String getRadix(java.lang.String fqn)
fqn
- Function name.
private static void findCommands()
commands
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |