@Override public Map<String, String> info(String connectionFactory, String username, String password) throws MBeanException { try { return jmsService.info(connectionFactory, username, password); } catch (Throwable t) { throw new MBeanException(null, t.getMessage()); } }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("Property"); table.column("Value"); Map<String, String> info = getJmsService().info(connectionFactory, username, password); for (String key : info.keySet()) { table.addRow().addContent(key, info.get(key)); } table.print(System.out); return null; }
public Object doExecute() throws Exception { ShellTable table = new ShellTable(); table.column("Property"); table.column("Value"); Map<String, String> info = getJmsService().info(connectionFactory, username, password); for (String key : info.keySet()) { table.addRow().addContent(key, info.get(key)); } table.print(System.out); return null; }