Class AbstractMonitor
java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
- Direct Known Subclasses:
AssertMetrics
,BackgroundFlushingMetrics
,BtreeIndexCounters
,ConnectionMetrics
,GlobalLockMetrics
,MemoryMetrics
,OperationCounters
,ServerInfo
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.5
Base class to encapsulate common configuration settings when connecting to a database
- Author:
- Mark Pollack, Oliver Gierke, Christoph Strobl
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractMonitor
(com.mongodb.client.MongoClient mongoClient) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.client.MongoDatabase
Deprecated, for removal: This API element is subject to removal in a future version.protected com.mongodb.client.MongoClient
Deprecated, for removal: This API element is subject to removal in a future version.org.bson.Document
Deprecated, for removal: This API element is subject to removal in a future version.protected List<com.mongodb.ServerAddress>
hosts()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
AbstractMonitor
protected AbstractMonitor(com.mongodb.client.MongoClient mongoClient) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mongoClient
- must not be null.- Since:
- 2.2
-
-
Method Details
-
getServerStatus
public org.bson.Document getServerStatus()Deprecated, for removal: This API element is subject to removal in a future version. -
getDb
Deprecated, for removal: This API element is subject to removal in a future version. -
getMongoClient
protected com.mongodb.client.MongoClient getMongoClient()Deprecated, for removal: This API element is subject to removal in a future version. -
hosts
Deprecated, for removal: This API element is subject to removal in a future version.
-