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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
int
int
int
Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
getDb, getMongoClient, getServerStatus, hosts
-
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
-