Package org.nuxeo.ecm.core.storage.dbs
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
Wrapper used to wrap the Guava cache's statistics into Gauges in order to report them via Codahale Metrics.
- Since:
- 8.10
-
Field Summary
Fields inherited from class org.nuxeo.runtime.metrics.NuxeoMetricSet
metrics, prefixName
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addCacheMetrics
(com.google.common.cache.Cache<?, ?> cache, GuavaCacheMetric metrics) static io.dropwizard.metrics5.MetricSet
of
(com.google.common.cache.Cache<?, ?> cache, io.dropwizard.metrics5.MetricName name) static io.dropwizard.metrics5.MetricSet
Methods inherited from class org.nuxeo.runtime.metrics.NuxeoMetricSet
getMetricNames, getMetrics, getPrefixName, putGauge, putGauge
-
Method Details
-
of
public static io.dropwizard.metrics5.MetricSet of(com.google.common.cache.Cache<?, ?> cache, io.dropwizard.metrics5.MetricName name) -
of
-
addCacheMetrics
protected static void addCacheMetrics(com.google.common.cache.Cache<?, ?> cache, GuavaCacheMetric metrics)
-