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 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

      protected Long size()
      Deprecated.
      Specified by:
      size in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
    • hitCount

      protected long hitCount()
      Deprecated.
      Specified by:
      hitCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
    • missCount

      protected Long missCount()
      Deprecated.
      Specified by:
      missCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
    • evictionCount

      protected Long evictionCount()
      Deprecated.
      Specified by:
      evictionCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
    • putCount

      protected long putCount()
      Deprecated.
      Specified by:
      putCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
    • bindImplementationSpecificMetrics

      protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry)
      Deprecated.
      Specified by:
      bindImplementationSpecificMetrics in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder