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
@Deprecated(since="2.0.7")
public class IgniteCacheMetrics
extends io.micrometer.core.instrument.binder.cache.CacheMeterBinder
Deprecated.
A helper class for monitoring and exposing Ignite cache metrics through Micrometer metrics. This
class extends
CacheMeterBinder, allowing integration with a metrics registry.
This implementation utilizes a background thread to refresh the cache statistics upon a scrape request. By offloading these calculations, we prevent blocking the main request threads (such as Tomcat HTTP threads) during Micrometer scrapes.
If a refresh is already in progress, additional scrape requests will use the currently available metrics and will not spawn additional tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionIgniteCacheMetrics(ExecutorService refreshExecutor, org.apache.ignite.Ignite ignite, String cacheName, Iterable<io.micrometer.core.instrument.Tag> tags) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) Deprecated.protected LongDeprecated.protected longhitCount()Deprecated.protected LongDeprecated.static IgniteCacheMetricsmonitor(io.micrometer.core.instrument.MeterRegistry registry, ExecutorService refreshExecutor, org.apache.ignite.Ignite ignite, String cache, String... tags) Deprecated.protected longputCount()Deprecated.protected Longsize()Deprecated.voidunregister(io.micrometer.core.instrument.MeterRegistry registry) Deprecated.Methods inherited from class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
bindTo, getCache, getTagsWithCacheName
-
Constructor Details
-
IgniteCacheMetrics
public IgniteCacheMetrics(ExecutorService refreshExecutor, org.apache.ignite.Ignite ignite, String cacheName, Iterable<io.micrometer.core.instrument.Tag> tags) Deprecated.
-
-
Method Details
-
monitor
public static IgniteCacheMetrics monitor(io.micrometer.core.instrument.MeterRegistry registry, ExecutorService refreshExecutor, org.apache.ignite.Ignite ignite, String cache, String... tags) Deprecated. -
unregister
public void unregister(io.micrometer.core.instrument.MeterRegistry registry) Deprecated. -
size
Deprecated.- Specified by:
sizein classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
hitCount
protected long hitCount()Deprecated.- Specified by:
hitCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
missCount
Deprecated.- Specified by:
missCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
evictionCount
Deprecated.- Specified by:
evictionCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
putCount
protected long putCount()Deprecated.- Specified by:
putCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
bindImplementationSpecificMetrics
protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) Deprecated.- Specified by:
bindImplementationSpecificMetricsin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-