Class BtreeIndexCounters

java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.BtreeIndexCounters

@ManagedResource(description="Btree Metrics") public class BtreeIndexCounters extends AbstractMonitor
JMX Metrics for B-tree index counters
Author:
Mark Pollack
  • Constructor Details

    • BtreeIndexCounters

      public BtreeIndexCounters(com.mongodb.client.MongoClient mongoClient)
      Parameters:
      mongoClient - must not be null.
      Since:
      2.2
  • Method Details

    • getAccesses

      @ManagedMetric(metricType=GAUGE, displayName="Accesses") public int getAccesses()
    • getHits

      @ManagedMetric(metricType=GAUGE, displayName="Hits") public int getHits()
    • getMisses

      @ManagedMetric(metricType=GAUGE, displayName="Misses") public int getMisses()
    • getResets

      @ManagedMetric(metricType=GAUGE, displayName="Resets") public int getResets()
    • getMissRatio

      @ManagedMetric(metricType=GAUGE, displayName="Miss Ratio") public int getMissRatio()