public DiameterStatisticsPrinter(MBeanServerConnection connection) throws Exception
{
_connection = connection;
ObjectName objectName = (ObjectName) _connection.getAttribute(ConsoleFilter.DIAMETER_NODE, "sessionManager");
add(new PropertiesPrinter(objectName, "diameter.stats.sessions", _connection));
ObjectName[] transports = (ObjectName[]) _connection.getAttribute(
ConsoleFilter.DIAMETER_NODE, "connectors");
for (int i = 0; i < transports.length; i++)
add(new PropertiesPrinter(transports[i], "diameter.stats.msg", _connection));
@SuppressWarnings("unchecked")
Set<ObjectName> peers = _connection.queryNames(ConsoleFilter.DIAMETER_PEERS, null);
add(new SetPrinter(peers, "diameter.stats.pending", _connection));
}