Public Member Functions | |
EnableRead (VirtualDatabaseAdmin module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
String | getCommandParameters () |
Definition at line 40 of file EnableRead.java.
|
Creates a new
Definition at line 48 of file EnableRead.java. 00049 { 00050 super(module); 00051 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 81 of file EnableRead.java. 00082 { 00083 return ConsoleTranslate.get("admin.command.enable.read"); 00084 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 73 of file EnableRead.java. 00074 { 00075 return "enableRead"; 00076 }
|
|
Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 89 of file EnableRead.java. 00090 { 00091 return "<backendName>"; 00092 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 56 of file EnableRead.java. References org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.enableRead(), org.objectweb.cjdbc.console.jmx.RmiJmxClient.getDatabaseBackendProxy(), and org.objectweb.cjdbc.console.text.Console.println(). 00057 { 00058 StringTokenizer st = new StringTokenizer(commandText); 00059 if (st.countTokens() != 1) 00060 throw new ConsoleException(ConsoleTranslate 00061 .get("console.error.invalid.comment.argument")); 00062 String backendName = st.nextToken(); 00063 console.println(ConsoleTranslate.get("admin.command.enable.read.echo", 00064 backendName)); 00065 DatabaseBackendMBean mbean = jmxClient.getDatabaseBackendProxy(dbName, 00066 backendName, user, password); 00067 mbean.enableRead(); 00068 }
|