@Test public void testGetVersion() { assertTrue(status.getVersion().matches("^\\d+\\.\\d+\\.\\d+$")); }
@NotNull public String getVersion() { if (version == null) { String v = getServerStatus().getString("version"); if (v == null) { v = getBuildInfo().getString("version"); } version = v; } return version; }
MongoStatus implements ServerMonitorListener { @NotNull public String getVersion() { if (version == null) { String v = getServerStatus().getString("version"); if (v == null) { v = getBuildInfo().getString("version"); } version = v; } return version; } }
MongoStatus implements ServerMonitorListener { @NotNull public String getVersion() { if (version == null) { String v = getServerStatus().getString("version"); if (v == null) { v = getBuildInfo().getString("version"); } version = v; } return version; } MongoStatus(@NotNull MongoClient client,
                       @NotNull String dbName); }
MongoStatus implements ServerMonitorListener { @NotNull public String getVersion() { if (version == null) { String v = getServerStatus().getString("version"); if (v == null) { v = getBuildInfo().getString("version"); } version = v; } return version; } MongoStatus(@NotNull MongoClient client,
                       @NotNull String dbName); void checkVersion(); boolean isMajorityReadConcernSupported(); boolean isMajorityReadConcernEnabled(); @NotNull String getServerDetails(); @NotNull String getVersion(); @Override void serverHearbeatStarted(ServerHeartbeatStartedEvent event); @Override void serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event); @Override void serverHeartbeatFailed(ServerHeartbeatFailedEvent event); }
MongoStatus implements ServerMonitorListener { @NotNull public String getVersion() { if (version == null) { String v = getServerStatus().getString("version"); if (v == null) { v = getBuildInfo().getString("version"); } version = v; } return version; } MongoStatus(@NotNull MongoClient client,
                       @NotNull String dbName); void checkVersion(); boolean isMajorityReadConcernSupported(); boolean isMajorityReadConcernEnabled(); @NotNull String getServerDetails(); @NotNull String getVersion(); @Override void serverHearbeatStarted(ServerHeartbeatStartedEvent event); @Override void serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event); @Override void serverHeartbeatFailed(ServerHeartbeatFailedEvent event);  }