Class OperationCounters

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

@ManagedResource(description="Operation Counters") public class OperationCounters extends AbstractMonitor
JMX Metrics for Operation counters
Author:
Mark Pollack
  • Constructor Details

    • OperationCounters

      public OperationCounters(com.mongodb.client.MongoClient mongoClient)
      Parameters:
      mongoClient -
      Since:
      2.2
  • Method Details

    • getInsertCount

      @ManagedMetric(metricType=COUNTER, displayName="Insert operation count") public int getInsertCount()
    • getQueryCount

      @ManagedMetric(metricType=COUNTER, displayName="Query operation count") public int getQueryCount()
    • getUpdateCount

      @ManagedMetric(metricType=COUNTER, displayName="Update operation count") public int getUpdateCount()
    • getDeleteCount

      @ManagedMetric(metricType=COUNTER, displayName="Delete operation count") public int getDeleteCount()
    • getGetMoreCount

      @ManagedMetric(metricType=COUNTER, displayName="GetMore operation count") public int getGetMoreCount()
    • getCommandCount

      @ManagedMetric(metricType=COUNTER, displayName="Command operation count") public int getCommandCount()