ThriftServiceStatsHandler serviceStatsHandler)
{
// populate stats map with method names mapped to empty stat objects and tell JMX to export that
final ConcurrentMap<String, ThriftMethodStats> stats = serviceStatsHandler.getStats();
for (Map.Entry<String, ThriftMethodProcessor> entry: thriftServiceProcessor.getMethods().entrySet()) {
stats.putIfAbsent(entry.getValue().getQualifiedName(), new ThriftMethodStats());
}
return stats;
}