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 Details

    • IgniteCacheMetrics

      public IgniteCacheMetrics(org.apache.ignite.Ignite ignite, String cacheName, long metricsRefreshFrequencyMillis, int calculationRangeCount, Iterable<io.micrometer.core.instrument.Tag> tags)
  • 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

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

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

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

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

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

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