Search in sources :

Example 6 with CacheStatsMBean

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;
}
Also used : CacheStatsMBean(org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean) Reference(org.osgi.service.component.annotations.Reference)

Aggregations

CacheStatsMBean (org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean)6 Supplier (com.google.common.base.Supplier)3 SegmentRevisionGC (org.apache.jackrabbit.oak.segment.compaction.SegmentRevisionGC)3 SegmentRevisionGCMBean (org.apache.jackrabbit.oak.segment.compaction.SegmentRevisionGCMBean)3 FileStoreBuilder (org.apache.jackrabbit.oak.segment.file.FileStoreBuilder)3 MetricsIOMonitor (org.apache.jackrabbit.oak.segment.file.MetricsIOMonitor)3 RevisionGC (org.apache.jackrabbit.oak.spi.state.RevisionGC)3 ByteArrayInputStream (java.io.ByteArrayInputStream)2 IOException (java.io.IOException)2 HashMap (java.util.HashMap)2 SimpleValueFactory (org.apache.jackrabbit.commons.SimpleValueFactory)2 Descriptors (org.apache.jackrabbit.oak.api.Descriptors)2 CheckpointMBean (org.apache.jackrabbit.oak.api.jmx.CheckpointMBean)2 FileStoreBackupRestoreMBean (org.apache.jackrabbit.oak.api.jmx.FileStoreBackupRestoreMBean)2 FileStoreBackupRestoreImpl (org.apache.jackrabbit.oak.backup.impl.FileStoreBackupRestoreImpl)2 BlobGC (org.apache.jackrabbit.oak.plugins.blob.BlobGC)2 BlobGCMBean (org.apache.jackrabbit.oak.plugins.blob.BlobGCMBean)2 BlobGarbageCollector (org.apache.jackrabbit.oak.plugins.blob.BlobGarbageCollector)2 BlobTrackingStore (org.apache.jackrabbit.oak.plugins.blob.BlobTrackingStore)2 MarkSweepGarbageCollector (org.apache.jackrabbit.oak.plugins.blob.MarkSweepGarbageCollector)2