@Override public Object execute() throws Exception { getJmsService().delete(name); return null; }
@Override public Object execute() throws Exception { getJmsService().create(name, type, url, username, password, pool); return null; }
@Override public Object execute() throws Exception { getJmsService().send(connectionFactory, queue, message, replyTo, username, password); return null; }
@Override public Object execute() throws Exception { System.out.println(getJmsService().consume(connectionFactory, queue, selector, username, password) + " message(s) consumed"); return null; }
@Override public Object execute() throws Exception { System.out.println(getJmsService().move(connectionFactory, source, destination, selector, username, password) + " message(s) moved"); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("JMS Connection Factory"); List<String> connectionFactories = getJmsService().connectionFactories(); for (String connectionFactory : connectionFactories) { table.addRow().addContent(connectionFactory); } table.print(System.out); return null; }
public Object doExecute() throws Exception { ShellTable table = new ShellTable(); table.column("Messages Count"); table.addRow().addContent(getJmsService().count(connectionFactory, queue, username, password)); table.print(System.out); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("JMS Queues"); for (String queue : getJmsService().queues(connectionFactory, username, password)) { table.addRow().addContent(queue); } table.print(System.out); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("JMS Topics"); for (String topic : getJmsService().topics(connectionFactory, username, password)) { table.addRow().addContent(topic); } table.print(System.out); return null; }
@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 { getJmsService().delete(name); return null; }
public Object doExecute() throws Exception { getJmsService().create(name, type, url, username, password); return null; }
public Object doExecute() throws Exception { getJmsService().send(connectionFactory, queue, message, replyTo, username, password); return null; }
public Object doExecute() throws Exception { System.out.println(getJmsService().consume(connectionFactory, queue, selector, username, password) + " message(s) consumed"); return null; }
public Object doExecute() throws Exception { System.out.println(getJmsService().move(connectionFactory, source, destination, selector, username, password) + " message(s) moved"); return null; }
public Object doExecute() throws Exception { ShellTable table = new ShellTable(); table.column("JMS Connection Factory"); List<String> connectionFactories = getJmsService().connectionFactories(); for (String connectionFactory : connectionFactories) { table.addRow().addContent(connectionFactory); } table.print(System.out); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("Messages Count"); table.addRow().addContent(getJmsService().count(connectionFactory, queue, username, password)); table.print(System.out); return null; }
public Object doExecute() throws Exception { ShellTable table = new ShellTable(); table.column("JMS Queues"); for (String queue : getJmsService().queues(connectionFactory, username, password)) { table.addRow().addContent(queue); } table.print(System.out); return null; }
public Object doExecute() throws Exception { ShellTable table = new ShellTable(); table.column("JMS Topics"); for (String topic : getJmsService().topics(connectionFactory, username, password)) { table.addRow().addContent(topic); } 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; }