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.ConsoleException; 29 import org.objectweb.cjdbc.console.text.commands.ConsoleCommand; 30 import org.objectweb.cjdbc.console.text.module.AbstractConsoleModule; 31 32 40 public class GetXml extends ConsoleCommand 41 { 42 43 48 public GetXml(AbstractConsoleModule module) 49 { 50 super(module); 51 } 52 53 56 public void parse(String commandText) throws Exception 57 { 58 try 59 { 60 console.println(jmxClient.getControllerProxy().getXml()); 61 } 62 catch (Exception e) 63 { 64 throw new ConsoleException(ConsoleTranslate 65 .get("controller.command.get.xml.error")); 66 } 67 68 } 69 70 73 public String getCommandName() 74 { 75 return "show controller config"; 76 } 77 78 81 public String getCommandDescription() 82 { 83 return ConsoleTranslate.get("controller.command.get.xml.description"); 84 } 85 86 } | Popular Tags |