use of org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean in project jackrabbit-oak by apache.
the class CacheStatsMetrics method setMetricRegistry.
@Reference(target = "(name=oak)")
synchronized void setMetricRegistry(MetricRegistry registry) {
LOG.debug("setMetricRegistry({})", registry);
for (CacheStatsMBean stats : cacheStatsMBeans.values()) {
unregisterCacheStatsMBean(this.registry, stats);
registerCacheStatsMBean(registry, stats);
}
this.registry = registry;
}
Aggregations