reporters = Maps.newHashMap();
REGISTRIES.put(registry, reporters);
}
JmxReporter reporter = reporters.get(domain);
if (reporter == null) {
Builder reporterBuilder = JmxReporter.forRegistry(registry)
.filter(filter)
.convertDurationsTo(defaultDurationUnit)
.convertRatesTo(defaultRateUnit)
.specificDurationUnits(durationUnits)
.specificRateUnits(rateUnits)
.inDomain(domain);
reporter = reporterBuilder.build();
reporter.start();
reporters.put(domain, reporter);
}
}
}