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.common.xml.XmlTools; 29 import org.objectweb.cjdbc.console.text.ConsoleException; 30 import org.objectweb.cjdbc.console.text.commands.ConsoleCommand; 31 import org.objectweb.cjdbc.console.text.module.AbstractConsoleModule; 32 33 41 public class GetInfo extends ConsoleCommand 42 { 43 44 49 public GetInfo(AbstractConsoleModule module) 50 { 51 super(module); 52 } 53 54 57 public void parse(String commandText) throws Exception 58 { 59 try 60 { 61 console.println(XmlTools.applyXsl( 62 jmxClient.getControllerProxy().getXml(), "c-jdbc-controller.xsl")); 63 } 64 catch (Exception e) 65 { 66 throw new ConsoleException(ConsoleTranslate.get( 67 "controller.command.getInfo.failed", e)); 68 } 69 70 } 71 72 75 public String getCommandName() 76 { 77 return "getInfo"; 78 } 79 80 83 public String getCommandDescription() 84 { 85 return ConsoleTranslate.get("controller.command.getInfo"); 86 } 87 88 } | Popular Tags |