1 23 24 package org.objectweb.cjdbc.console.text.commands.dbadmin; 25 26 import java.util.StringTokenizer ; 27 28 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 29 import org.objectweb.cjdbc.console.text.module.VirtualDatabaseAdmin; 30 31 40 public class CopyLogFromCheckpoint extends AbstractAdminCommand 41 { 42 47 public CopyLogFromCheckpoint(VirtualDatabaseAdmin module) 48 { 49 super(module); 50 } 51 52 55 public void parse(String commandText) throws Exception 56 { 57 StringTokenizer st = new StringTokenizer (commandText); 58 String checkpointName = null, controllerName = null; 59 try 60 { 61 checkpointName = st.nextToken(); 62 controllerName = st.nextToken(); 63 } 64 catch (Exception e) 65 { 66 console.printError(getUsage()); 67 } 68 69 jmxClient.getVirtualDatabaseProxy(dbName, user, password) 70 .copyLogFromCheckpoint(checkpointName, controllerName); 71 76 } 77 78 81 public String getCommandParameters() 82 { 83 return ConsoleTranslate.get("admin.command.restore.log.params"); 84 } 85 86 89 public String getCommandName() 90 { 91 return "restore log"; 92 } 93 94 97 public String getCommandDescription() 98 { 99 return ConsoleTranslate.get("admin.command.restore.log.description"); 100 } 101 102 } 103 | Popular Tags |