Class GlobalLockMetrics
java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.GlobalLockMetrics
@ManagedResource(description="Global Lock Metrics")
public class GlobalLockMetrics
extends AbstractMonitor
JMX Metrics for Global Locks
- Author:
- Mark Pollack
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
double
double
double
Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
getDb, getMongoClient, getServerStatus, hosts
-
Constructor Details
-
GlobalLockMetrics
public GlobalLockMetrics(com.mongodb.client.MongoClient mongoClient) - Parameters:
mongoClient
- must not be null.- Since:
- 2.2
-
-
Method Details
-
getTotalTime
-
getLockTime
-
getLockTimeRatio
-
getCurrentQueueTotal
-
getCurrentQueueReaders
-
getCurrentQueueWriters
-