1 23 24 package org.objectweb.cjdbc.console.text.commands.dbadmin; 25 26 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 27 import org.objectweb.cjdbc.console.text.module.VirtualDatabaseAdmin; 28 29 36 public class DeleteLogUpToCheckpoint extends AbstractAdminCommand 37 { 38 43 public DeleteLogUpToCheckpoint(VirtualDatabaseAdmin module) 44 { 45 super(module); 46 } 47 48 51 public void parse(String commandText) throws Exception 52 { 53 String checkpointName = commandText.trim(); 54 55 if ("".equals(checkpointName)) 56 { 57 console.printError(getUsage()); 58 return; 59 } 60 61 jmxClient.getVirtualDatabaseProxy(dbName, user, password) 62 .deleteLogUpToCheckpoint(checkpointName); 63 67 } 68 69 72 public String getCommandName() 73 { 74 return "purge log"; 75 } 76 77 80 public String getCommandParameters() 81 { 82 return ConsoleTranslate.get("admin.command.deleteLogUpToCheckpoint.params"); 83 } 84 85 88 public String getCommandDescription() 89 { 90 return ConsoleTranslate 91 .get("admin.command.deleteLogUpToCheckpoint.description"); 92 } 93 94 } | Popular Tags |