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:
EhCache2Metrics
-
-
Constructor Summary
Constructors Constructor Description EhCache24Metrics(net.sf.ehcache.Ehcache cache, Iterable<io.micrometer.core.instrument.Tag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry)
protected Long
evictionCount()
protected long
hitCount()
protected Long
missCount()
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.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.protected long
putCount()
protected Long
size()
-
-
-
Constructor Detail
-
EhCache24Metrics
public EhCache24Metrics(net.sf.ehcache.Ehcache cache, Iterable<io.micrometer.core.instrument.Tag> tags)
-
-
Method Detail
-
monitor
public 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.
-
monitor
public 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
protected Long size()
- Specified by:
size
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
-
hitCount
protected long hitCount()
- Specified by:
hitCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
-
missCount
protected Long missCount()
- Specified by:
missCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
-
evictionCount
protected Long evictionCount()
- Specified by:
evictionCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
-
putCount
protected long putCount()
- Specified by:
putCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
-
bindImplementationSpecificMetrics
protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry)
- Specified by:
bindImplementationSpecificMetrics
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<net.sf.ehcache.Ehcache>
-
-