Class IgniteStorageMetrics

java.lang.Object
com.broadleafcommerce.common.extension.cache.IgniteStorageMetrics
All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder

@Deprecated(since="2.0.7") public class IgniteStorageMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder
Deprecated.
Add some ignite specific cache metrics to micrometer output on interval.

This implementation utilizes a background thread to refresh the storage 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

    • IgniteStorageMetrics

      public IgniteStorageMetrics(ExecutorService refreshExecutor, org.apache.ignite.Ignite ignite, String region, Iterable<io.micrometer.core.instrument.Tag> tags)
      Deprecated.
  • Method Details

    • monitor

      public static IgniteStorageMetrics monitor(io.micrometer.core.instrument.MeterRegistry registry, ExecutorService refreshExecutor, String region, org.apache.ignite.Ignite ignite, String... tags)
      Deprecated.
    • bindTo

      public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
      Deprecated.
      Specified by:
      bindTo in interface io.micrometer.core.instrument.binder.MeterBinder
    • unregister

      public void unregister(io.micrometer.core.instrument.MeterRegistry registry)
      Deprecated.