Class EhCache24Metrics
java.lang.Object
io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
ubic.gemma.core.metrics.binder.cache.EhCache24Metrics
- All Implemented Interfaces:
- io.micrometer.core.instrument.binder.MeterBinder
public class EhCache24Metrics
extends io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
Metrics for Ehcache 2.4 series.
- Author:
- poirigui
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionEhCache24Metrics(net.sf.ehcache.Ehcache cache, Iterable<io.micrometer.core.instrument.Tag> tags) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidbindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) protected Longprotected longhitCount()protected Longstatic net.sf.ehcache.Ehcachemonitor(io.micrometer.core.instrument.MeterRegistry registry, net.sf.ehcache.Ehcache cache, Iterable<io.micrometer.core.instrument.Tag> tags) Record metrics on an EhCache cache.static net.sf.ehcache.Ehcachemonitor(io.micrometer.core.instrument.MeterRegistry registry, net.sf.ehcache.Ehcache cache, String... tags) Record metrics on an EhCache cache.protected longputCount()protected Longsize()Methods inherited from class io.micrometer.core.instrument.binder.cache.CacheMeterBinderbindTo, getCache, getTagsWithCacheName
- 
Constructor Details- 
EhCache24Metricspublic EhCache24Metrics(net.sf.ehcache.Ehcache cache, Iterable<io.micrometer.core.instrument.Tag> tags) 
 
- 
- 
Method Details- 
monitorpublic static net.sf.ehcache.Ehcache monitor(io.micrometer.core.instrument.MeterRegistry registry, net.sf.ehcache.Ehcache cache, String... tags) Record metrics on an EhCache cache.- Parameters:
- registry- The registry to bind metrics to.
- cache- The cache to instrument.
- tags- Tags to apply to all recorded metrics. Must be an even number of arguments representing key/value pairs of tags.
- Returns:
- The instrumented cache, unchanged. The original cache is not wrapped or proxied in any way.
 
- 
monitorpublic static net.sf.ehcache.Ehcache monitor(io.micrometer.core.instrument.MeterRegistry registry, net.sf.ehcache.Ehcache cache, Iterable<io.micrometer.core.instrument.Tag> tags) Record metrics on an EhCache cache.- Parameters:
- registry- The registry to bind metrics to.
- cache- The cache to instrument.
- tags- Tags to apply to all recorded metrics.
- Returns:
- The instrumented cache, unchanged. The original cache is not wrapped or proxied in any way.
 
- 
size- Specified by:
- sizein class- io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
 
- 
hitCountprotected long hitCount()- Specified by:
- hitCountin class- io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
 
- 
missCount- Specified by:
- missCountin class- io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
 
- 
evictionCount- Specified by:
- evictionCountin class- io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
 
- 
putCountprotected long putCount()- Specified by:
- putCountin class- io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
 
- 
bindImplementationSpecificMetricsprotected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
- bindImplementationSpecificMetricsin class- io.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
 
 
-