Class AbstractMonitor

java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
Direct Known Subclasses:
AssertMetrics, BackgroundFlushingMetrics, BtreeIndexCounters, ConnectionMetrics, GlobalLockMetrics, MemoryMetrics, OperationCounters, ServerInfo

@Deprecated(since="4.5", forRemoval=true) public abstract class AbstractMonitor extends Object
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

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractMonitor(com.mongodb.client.MongoClient mongoClient)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mongodb.client.MongoDatabase
    getDb(String databaseName)
    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>
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public com.mongodb.client.MongoDatabase getDb(String databaseName)
      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

      protected List<com.mongodb.ServerAddress> hosts()
      Deprecated, for removal: This API element is subject to removal in a future version.