Public Member Functions | |
DisableAll (VirtualDatabaseAdmin module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
Definition at line 37 of file DisableAll.java.
|
Creates a new
Definition at line 45 of file DisableAll.java. 00046 { 00047 super(module); 00048 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 84 of file DisableAll.java. 00085 { 00086 return ConsoleTranslate.get("admin.command.disableAll"); 00087 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 75 of file DisableAll.java. 00076 { 00077 00078 return "disableAll"; 00079 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 53 of file DisableAll.java. References org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.disableAllBackends(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.disableAllBackendsWithCheckpoint(), and org.objectweb.cjdbc.console.jmx.RmiJmxClient.getVirtualDatabaseProxy(). 00054 { 00055 String checkpointName = null; 00056 try 00057 { 00058 checkpointName = commandText.trim(); 00059 } 00060 catch (Exception e) 00061 { 00062 00063 } 00064 VirtualDatabaseMBean vdjc = jmxClient.getVirtualDatabaseProxy(dbName, user, 00065 password); 00066 if (checkpointName == null || checkpointName.equals("")) 00067 vdjc.disableAllBackends(); 00068 else 00069 vdjc.disableAllBackendsWithCheckpoint(checkpointName); 00070 }
|