java.lang.Object
org.apache.jackrabbit.oak.plugins.document.mongo.MongoStatus
All Implemented Interfaces:
com.mongodb.event.ServerMonitorListener, EventListener

public class MongoStatus extends Object implements com.mongodb.event.ServerMonitorListener
  • Constructor Details

    • MongoStatus

      public MongoStatus(@NotNull @NotNull com.mongodb.MongoClient client, @NotNull @NotNull String dbName)
  • Method Details

    • checkVersion

      public void checkVersion()
    • isMajorityReadConcernSupported

      public boolean isMajorityReadConcernSupported()
      Check if the majority read concern is supported by this storage engine. The fact that read concern is supported doesn't it can be used - it also has to be enabled.
      Returns:
      true if the majority read concern is supported
    • isMajorityReadConcernEnabled

      public boolean isMajorityReadConcernEnabled()
      Check if the majority read concern is enabled and can be used for queries.
      Returns:
      true if the majority read concern is enabled
    • getServerDetails

      @NotNull public @NotNull String getServerDetails()
    • getVersion

      @NotNull public @NotNull String getVersion()
    • serverHearbeatStarted

      public void serverHearbeatStarted(com.mongodb.event.ServerHeartbeatStartedEvent event)
      Specified by:
      serverHearbeatStarted in interface com.mongodb.event.ServerMonitorListener
    • serverHeartbeatSucceeded

      public void serverHeartbeatSucceeded(com.mongodb.event.ServerHeartbeatSucceededEvent event)
      Specified by:
      serverHeartbeatSucceeded in interface com.mongodb.event.ServerMonitorListener
    • serverHeartbeatFailed

      public void serverHeartbeatFailed(com.mongodb.event.ServerHeartbeatFailedEvent event)
      Specified by:
      serverHeartbeatFailed in interface com.mongodb.event.ServerMonitorListener