public class MongoStatus extends Object implements com.mongodb.event.ServerMonitorListener
| Constructor and Description |
|---|
MongoStatus(@NotNull com.mongodb.MongoClient client,
@NotNull String dbName) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkVersion() |
@NotNull String |
getServerDetails() |
@NotNull String |
getVersion() |
boolean |
isMajorityReadConcernEnabled()
Check if the majority read concern is enabled and can be used for queries.
|
boolean |
isMajorityReadConcernSupported()
Check if the majority read concern is supported by this storage engine.
|
void |
serverHearbeatStarted(com.mongodb.event.ServerHeartbeatStartedEvent event) |
void |
serverHeartbeatFailed(com.mongodb.event.ServerHeartbeatFailedEvent event) |
void |
serverHeartbeatSucceeded(com.mongodb.event.ServerHeartbeatSucceededEvent event) |
public MongoStatus(@NotNull
@NotNull com.mongodb.MongoClient client,
@NotNull
@NotNull String dbName)
public void checkVersion()
public boolean isMajorityReadConcernSupported()
public boolean isMajorityReadConcernEnabled()
@NotNull public @NotNull String getServerDetails()
@NotNull public @NotNull String getVersion()
public void serverHearbeatStarted(com.mongodb.event.ServerHeartbeatStartedEvent event)
serverHearbeatStarted in interface com.mongodb.event.ServerMonitorListenerpublic void serverHeartbeatSucceeded(com.mongodb.event.ServerHeartbeatSucceededEvent event)
serverHeartbeatSucceeded in interface com.mongodb.event.ServerMonitorListenerpublic void serverHeartbeatFailed(com.mongodb.event.ServerHeartbeatFailedEvent event)
serverHeartbeatFailed in interface com.mongodb.event.ServerMonitorListenerCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.