|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.console.text.commands.ConsoleCommand
This class defines a ConsoleCommand
| Field Summary | |
protected Console |
console
|
protected RmiJmxClient |
jmxClient
|
protected AbstractConsoleModule |
module
|
| Constructor Summary | |
ConsoleCommand(AbstractConsoleModule module)
Creates a new ConsoleCommand.java object |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
|
void |
execute(java.lang.String commandText)
Check if the JMX connection is still valid. |
abstract java.lang.String |
getCommandDescription()
Get the description of the command |
abstract java.lang.String |
getCommandName()
Get the name of the command |
java.lang.String |
getCommandParameters()
Return a String description of the parameters of this
command. |
abstract void |
parse(java.lang.String commandText)
Parse the text of the command |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Console console
protected RmiJmxClient jmxClient
protected AbstractConsoleModule module
| Constructor Detail |
public ConsoleCommand(AbstractConsoleModule module)
ConsoleCommand.java object
module - module that owns this commands| Method Detail |
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)
public abstract void parse(java.lang.String commandText)
throws java.lang.Exception
commandText - the command text
java.lang.Exception - if connection with the mbean server is lost or command
does not have the proper format
public void execute(java.lang.String commandText)
throws java.lang.Exception
commandText - the parameters to execute the command with
java.lang.Exception - if failspublic abstract java.lang.String getCommandName()
String of the command namepublic java.lang.String getCommandParameters()
String description of the parameters of this
command.
String like <driverPathName>public abstract java.lang.String getCommandDescription()
String of the command description
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||