1 24 25 package org.objectweb.cjdbc.console.text.commands.monitor; 26 27 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 28 import org.objectweb.cjdbc.console.text.module.MonitorConsole; 29 import org.objectweb.cjdbc.console.views.RecoveryLogViewer; 30 31 37 public class ShowRecoveryLog extends AbstractMonitorCommand 38 { 39 40 45 public ShowRecoveryLog(MonitorConsole module) 46 { 47 super(module); 48 } 49 50 53 public void parse(String commandText) throws Exception 54 { 55 console.showInfo(jmxClient.getDataCollectorProxy().retrieveRecoveryLogData( 56 currentTarget), new RecoveryLogViewer(null)); 57 } 58 59 62 public String getCommandName() 63 { 64 return "showRecovery"; 65 } 66 67 70 public String getCommandDescription() 71 { 72 return ConsoleTranslate.get("monitor.command.recovery"); 73 } 74 75 } | Popular Tags |