public Map getStatistics(final DestinationConfig destination) throws JMSException
{
try
{
final DestinationInfo info = getDestinationInfo(destination);
final TreeMap rval = new TreeMap();
rval.putAll(PropertyUtils.describe(info));
rval.remove("inboundStatistics");
rval.remove("outboundStatistics");
rval.put("inboundByteRate", new Long(info.getInboundStatistics().getByteRate()));
rval.put("inboundMessageRate", new Long(info.getInboundStatistics().getMessageRate()));
rval.put("inboundTotalBytes", new Long(info.getInboundStatistics().getTotalBytes()));
rval.put("inboundTotalMessages", new Long(info.getInboundStatistics().getTotalMessages()));
rval.put("outboundByteRate", new Long(info.getOutboundStatistics().getByteRate()));
rval.put("outboundMessageRate", new Long(info.getOutboundStatistics().getMessageRate()));
rval.put("outboundTotalBytes", new Long(info.getOutboundStatistics().getTotalBytes()));
rval.put("outboundTotalMessages", new Long(info.getOutboundStatistics().getTotalMessages()));
return rval;
}
catch (IllegalAccessException e)
{