Public Member Functions | |
ListDatabases (AbstractConsoleModule module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
Definition at line 40 of file ListDatabases.java.
|
Creates a new
Definition at line 48 of file ListDatabases.java. 00049 { 00050 super(module); 00051 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 82 of file ListDatabases.java. 00083 { 00084 return ConsoleTranslate.get("controller.command.listDatabases"); 00085 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 74 of file ListDatabases.java. 00075 { 00076 return "listDatabases"; 00077 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 56 of file ListDatabases.java. References org.objectweb.cjdbc.console.jmx.RmiJmxClient.getControllerProxy(), and org.objectweb.cjdbc.console.text.Console.println(). 00057 { 00058 try 00059 { 00060 ArrayList list = jmxClient.getControllerProxy().getVirtualDatabaseNames(); 00061 for (int i = 0; i < list.size(); i++) 00062 console.println((String) list.get(i)); 00063 } 00064 catch (Exception e) 00065 { 00066 throw new ConsoleException(ConsoleTranslate.get( 00067 "controller.command.listDatabases.failed", e)); 00068 } 00069 }
|