1 24 25 package org.objectweb.cjdbc.console.text.commands.controller; 26 27 import org.objectweb.cjdbc.common.i18n.ConsoleTranslate; 28 import org.objectweb.cjdbc.console.text.commands.ConsoleCommand; 29 import org.objectweb.cjdbc.console.text.module.AbstractConsoleModule; 30 31 37 public class Monitor extends ConsoleCommand 38 { 39 40 45 public Monitor(AbstractConsoleModule module) 46 { 47 super(module); 48 } 49 50 53 public void parse(String commandText) throws Exception 54 { 55 console.getMonitorModule().login(new String []{commandText.trim()}); 56 console.getMonitorModule().handlePrompt(); 57 } 58 59 62 public String getCommandName() 63 { 64 return "monitor"; 65 } 66 67 70 public String getCommandDescription() 71 { 72 return ConsoleTranslate.get("controller.command.monitor.description"); 73 } 74 75 78 public String getCommandParameters() 79 { 80 return ConsoleTranslate.get("controller.command.monitor.params"); 81 } 82 } 83 | Popular Tags |