VirtualHost<?, ?, ?> virtualHost = virtualHostNode.getVirtualHost();
if (virtualHost instanceof VirtualHostImpl)
{
VirtualHostImpl vhostImpl = (VirtualHostImpl) virtualHost;
String name = virtualHost.getName();
StatisticsCounter dataDelivered = vhostImpl.getDataDeliveryStatistics();
StatisticsCounter messagesDelivered = vhostImpl.getMessageDeliveryStatistics();
StatisticsCounter dataReceived = vhostImpl.getDataReceiptStatistics();
StatisticsCounter messagesReceived = vhostImpl.getMessageReceiptStatistics();
EventLogger logger = vhostImpl.getEventLogger();
logger.message(VirtualHostMessages.STATS_DATA(name,
DELIVERED,
dataDelivered.getPeak() / 1024.0,
dataDelivered.getTotal()));
logger.message(VirtualHostMessages.STATS_MSGS(name,
DELIVERED,
messagesDelivered.getPeak(),
messagesDelivered.getTotal()));
logger.message(VirtualHostMessages.STATS_DATA(name,
RECEIVED,
dataReceived.getPeak() / 1024.0,
dataReceived.getTotal()));
logger.message(VirtualHostMessages.STATS_MSGS(name,
RECEIVED,
messagesReceived.getPeak(),
messagesReceived.getTotal()));
}
}
if (_reset)