Class AbstractMonitor
java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
- Direct Known Subclasses:
AssertMetrics
,BackgroundFlushingMetrics
,BtreeIndexCounters
,ConnectionMetrics
,GlobalLockMetrics
,MemoryMetrics
,OperationCounters
,ServerInfo
Base class to encapsulate common configuration settings when connecting to a database
- Author:
- Mark Pollack, Oliver Gierke, Christoph Strobl
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMonitor
(com.mongodb.client.MongoClient mongoClient) -
Method Summary
-
Constructor Details
-
AbstractMonitor
protected AbstractMonitor(com.mongodb.client.MongoClient mongoClient) - Parameters:
mongoClient
- must not be null.- Since:
- 2.2
-
-
Method Details
-
getServerStatus
public org.bson.Document getServerStatus() -
getDb
-
getMongoClient
protected com.mongodb.client.MongoClient getMongoClient() -
hosts
-