*/
public MessagingStats(String name, MessagingStats parent) {
this.name = name;
inboundExchanges = new CountStatisticImpl(parent.inboundExchanges, "inboundExchanges", "Number of Inbound MessageExchanges");
outboundExchanges = new CountStatisticImpl(parent.outboundExchanges, "outboundExchanges", "Number of Outbound MessageExchanges");
inboundExchangeRate = new TimeStatisticImpl(parent.inboundExchangeRate, "inboundExchangeRate", "time taken to process an Exchange");
outboundExchangeRate = new TimeStatisticImpl(parent.outboundExchangeRate, "outboundExchangeRate", "time taken to send an Exchange");
addStatistic("inboundExchanges", inboundExchanges);
addStatistic("outboundExchanges", outboundExchanges);
addStatistic("inboundExchangeRate", inboundExchangeRate);
addStatistic("outboundExchangeRate", outboundExchangeRate);
}