Class BackgroundFlushingMetrics

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

@ManagedResource(description="Background Flushing Metrics") public class BackgroundFlushingMetrics extends AbstractMonitor
JMX Metrics for Background Flushing
Author:
Mark Pollack
  • Constructor Details

    • BackgroundFlushingMetrics

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

    • getFlushes

      @ManagedMetric(metricType=COUNTER, displayName="Flushes") public int getFlushes()
    • getTotalMs

      @ManagedMetric(metricType=COUNTER, displayName="Total ms", unit="ms") public int getTotalMs()
    • getAverageMs

      @ManagedMetric(metricType=GAUGE, displayName="Average ms", unit="ms") public double getAverageMs()
    • getLastMs

      @ManagedMetric(metricType=GAUGE, displayName="Last Ms", unit="ms") public int getLastMs()
    • getLastFinished

      @ManagedMetric(metricType=GAUGE, displayName="Last finished") public Date getLastFinished()