Class IgniteCacheMetrics
java.lang.Object
io.micrometer.core.instrument.binder.cache.CacheMeterBinder
com.broadleafcommerce.common.extension.cache.IgniteCacheMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class IgniteCacheMetrics
extends io.micrometer.core.instrument.binder.cache.CacheMeterBinder
Add some ignite specific cache metrics to micrometer output on interval.
-
Constructor Summary
ConstructorDescriptionIgniteCacheMetrics
(org.apache.ignite.Ignite ignite, String cacheName, long metricsRefreshFrequencyMillis, int calculationRangeCount, Iterable<io.micrometer.core.instrument.Tag> tags) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindImplementationSpecificMetrics
(io.micrometer.core.instrument.MeterRegistry registry) protected Long
protected long
hitCount()
protected Long
static IgniteCacheMetrics
monitor
(io.micrometer.core.instrument.MeterRegistry registry, org.apache.ignite.Ignite ignite, String cache, long metricsRefreshFrequencyMillis, int calculationRangeCount, String... tags) protected long
putCount()
void
refresh
(org.apache.ignite.cache.CacheMetrics newMetrics) protected Long
size()
void
unregister
(io.micrometer.core.instrument.MeterRegistry registry) Methods inherited from class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
bindTo, getCache, getTagsWithCacheName
-
Constructor Details
-
IgniteCacheMetrics
-
-
Method Details
-
monitor
public static IgniteCacheMetrics monitor(io.micrometer.core.instrument.MeterRegistry registry, org.apache.ignite.Ignite ignite, String cache, long metricsRefreshFrequencyMillis, int calculationRangeCount, String... tags) -
refresh
public void refresh(org.apache.ignite.cache.CacheMetrics newMetrics) -
unregister
public void unregister(io.micrometer.core.instrument.MeterRegistry registry) -
size
- Specified by:
size
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
hitCount
protected long hitCount()- Specified by:
hitCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
missCount
- Specified by:
missCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
evictionCount
- Specified by:
evictionCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
putCount
protected long putCount()- Specified by:
putCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
bindImplementationSpecificMetrics
protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindImplementationSpecificMetrics
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-