1 23 24 package org.continuent.sequoia.console.text.commands.controller; 25 26 import org.continuent.sequoia.common.i18n.ConsoleTranslate; 27 import org.continuent.sequoia.console.text.ConsoleException; 28 import org.continuent.sequoia.console.text.commands.ConsoleCommand; 29 import org.continuent.sequoia.console.text.module.AbstractConsoleModule; 30 31 39 public class GetXml extends ConsoleCommand 40 { 41 42 47 public GetXml(AbstractConsoleModule module) 48 { 49 super(module); 50 } 51 52 55 public void parse(String commandText) throws Exception 56 { 57 checkJmxConnectionToController(); 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")); } 67 68 } 69 70 73 public String getCommandName() 74 { 75 return "show controller config"; } 77 78 81 public String getCommandDescription() 82 { 83 return ConsoleTranslate.get("controller.command.get.xml.description"); } 85 86 } | Popular Tags |