1 24 25 package org.objectweb.cjdbc.console.text.commands.dbadmin; 26 27 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 28 import org.objectweb.cjdbc.console.text.module.VirtualDatabaseAdmin; 29 30 36 public class EnableAll extends AbstractAdminCommand 37 { 38 39 44 public EnableAll(VirtualDatabaseAdmin module) 45 { 46 super(module); 47 } 48 49 52 public void parse(String commandText) throws Exception 53 { 54 jmxClient.getVirtualDatabaseProxy(dbName, user, password) 55 .enableAllBackendsFromCheckpoint(); 56 } 57 58 61 public String getCommandName() 62 { 63 return "enableAll"; 64 } 65 66 69 public String getCommandDescription() 70 { 71 return ConsoleTranslate.get("admin.command.enableAll"); 72 } 73 74 77 public String getCommandParameters() 78 { 79 return ""; 80 } 81 } | Popular Tags |