Class GuavaCacheMetric

java.lang.Object
org.nuxeo.runtime.metrics.NuxeoMetricSet
org.nuxeo.ecm.core.storage.dbs.GuavaCacheMetric
All Implemented Interfaces:
io.dropwizard.metrics5.Metric, io.dropwizard.metrics5.MetricSet

public class GuavaCacheMetric extends NuxeoMetricSet
Wrapper used to wrap the Guava cache's statistics into Gauges in order to report them via Codahale Metrics.
Since:
8.10
  • Method Details

    • of

      public static io.dropwizard.metrics5.MetricSet of(com.google.common.cache.Cache<?,?> cache, io.dropwizard.metrics5.MetricName name)
    • of

      public static io.dropwizard.metrics5.MetricSet of(com.google.common.cache.Cache<?,?> cache, String name, String... names)
    • addCacheMetrics

      protected static void addCacheMetrics(com.google.common.cache.Cache<?,?> cache, GuavaCacheMetric metrics)