test_class.declarator: connectionFactory = new MongoConnectionFactory()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public MongoConnectionFactory connectionFactory = new MongoConnectionFactory();
test_class.type: MongoConnectionFactory
test_class.var_name: connectionFactory
test_class.declarator: status
test_class.modifier: private
test_class.original_string: private MongoStatus status;
test_class.type: MongoStatus
test_class.var_name: status
test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoStatusTest.java
test_class.identifier: MongoStatusTest
test_case.body: @Test
      public void testDetails() {
          String details = status.getServerDetails();
          assertNotNull(details);
          assertFalse(details.isEmpty());
          assertTrue(details.startsWith("{"));
          assertTrue(details.endsWith("}"));
          assertTrue(details.contains("host="));
      }
test_case.class_method_signature: MongoStatusTest.testDetails()
test_case.full_signature: @Test public void testDetails()
test_case.identifier: testDetails
test_case.invocations: getServerDetails assertNotNull assertFalse isEmpty assertTrue startsWith assertTrue endsWith assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDetails()
focal_class.declarator: LOG = LoggerFactory.getLogger(MongoStatus.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(MongoStatus.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: SERVER_DETAIL_FIELD_NAMES
              = ImmutableSet.<String>builder()
              .add("host", "process", "connections", "repl", "storageEngine", "mem")
              .build()
focal_class.modifier: private static final
focal_class.original_string: private static final ImmutableSet<String> SERVER_DETAIL_FIELD_NAMES
              = ImmutableSet.<String>builder()
              .add("host", "process", "connections", "repl", "storageEngine", "mem")
              .build();
focal_class.type: ImmutableSet<String>
focal_class.var_name: SERVER_DETAIL_FIELD_NAMES
focal_class.declarator: client
focal_class.modifier: private final
focal_class.original_string: private final MongoClient client;
focal_class.type: MongoClient
focal_class.var_name: client
focal_class.declarator: dbName
focal_class.modifier: private final
focal_class.original_string: private final String dbName;
focal_class.type: String
focal_class.var_name: dbName
focal_class.declarator: serverStatus
focal_class.modifier: private
focal_class.original_string: private BasicDBObject serverStatus;
focal_class.type: BasicDBObject
focal_class.var_name: serverStatus
focal_class.declarator: buildInfo
focal_class.modifier: private
focal_class.original_string: private BasicDBObject buildInfo;
focal_class.type: BasicDBObject
focal_class.var_name: buildInfo
focal_class.declarator: version
focal_class.modifier: private
focal_class.original_string: private String version;
focal_class.type: String
focal_class.var_name: version
focal_class.declarator: majorityReadConcernSupported
focal_class.modifier: private
focal_class.original_string: private Boolean majorityReadConcernSupported;
focal_class.type: Boolean
focal_class.var_name: majorityReadConcernSupported
focal_class.declarator: majorityReadConcernEnabled
focal_class.modifier: private
focal_class.original_string: private Boolean majorityReadConcernEnabled;
focal_class.type: Boolean
focal_class.var_name: majorityReadConcernEnabled
focal_class.declarator: clientSessionSupported
focal_class.modifier: private
focal_class.original_string: private Boolean clientSessionSupported;
focal_class.type: Boolean
focal_class.var_name: clientSessionSupported
focal_class.declarator: replicaSetStatus = new ReplicaSetStatus()
focal_class.modifier: private final
focal_class.original_string: private final ReplicaSetStatus replicaSetStatus = new ReplicaSetStatus();
focal_class.type: ReplicaSetStatus
focal_class.var_name: replicaSetStatus
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoStatus.java
focal_class.identifier: MongoStatus
focal_class.interfaces: implements ServerMonitorListener
focal_class.class_method_signature: MongoStatus.MongoStatus(@NotNull MongoClient client,
                         @NotNull String dbName)
focal_class.full_signature: public  MongoStatus(@NotNull MongoClient client,
                         @NotNull String dbName)
focal_class.identifier: MongoStatus
focal_class.modifiers: public
focal_class.parameters: (@NotNull MongoClient client,
                         @NotNull String dbName)
focal_class.signature:  MongoStatus(@NotNull MongoClient client,
                         @NotNull String dbName)
focal_class.class_method_signature: MongoStatus.checkVersion()
focal_class.full_signature: public void checkVersion()
focal_class.identifier: checkVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkVersion()
focal_class.class_method_signature: MongoStatus.isMajorityReadConcernSupported()
focal_class.full_signature: public boolean isMajorityReadConcernSupported()
focal_class.identifier: isMajorityReadConcernSupported
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isMajorityReadConcernSupported()
focal_class.class_method_signature: MongoStatus.isMajorityReadConcernEnabled()
focal_class.full_signature: public boolean isMajorityReadConcernEnabled()
focal_class.identifier: isMajorityReadConcernEnabled
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isMajorityReadConcernEnabled()
focal_class.class_method_signature: MongoStatus.getServerDetails()
focal_class.full_signature: @NotNull public String getServerDetails()
focal_class.identifier: getServerDetails
focal_class.modifiers: @NotNull public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getServerDetails()
focal_class.class_method_signature: MongoStatus.getVersion()
focal_class.full_signature: @NotNull public String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: @NotNull public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_class.class_method_signature: MongoStatus.isVersion(int requiredMajor, int requiredMinor)
focal_class.full_signature:  boolean isVersion(int requiredMajor, int requiredMinor)
focal_class.identifier: isVersion
focal_class.parameters: (int requiredMajor, int requiredMinor)
focal_class.return: boolean
focal_class.signature: boolean isVersion(int requiredMajor, int requiredMinor)
focal_class.class_method_signature: MongoStatus.isClientSessionSupported()
focal_class.full_signature:  boolean isClientSessionSupported()
focal_class.identifier: isClientSessionSupported
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClientSessionSupported()
focal_class.class_method_signature: MongoStatus.getReplicaSetLagEstimate()
focal_class.full_signature:  long getReplicaSetLagEstimate()
focal_class.identifier: getReplicaSetLagEstimate
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getReplicaSetLagEstimate()
focal_class.class_method_signature: MongoStatus.serverHearbeatStarted(ServerHeartbeatStartedEvent event)
focal_class.full_signature: @Override public void serverHearbeatStarted(ServerHeartbeatStartedEvent event)
focal_class.identifier: serverHearbeatStarted
focal_class.modifiers: @Override public
focal_class.parameters: (ServerHeartbeatStartedEvent event)
focal_class.return: void
focal_class.signature: void serverHearbeatStarted(ServerHeartbeatStartedEvent event)
focal_class.class_method_signature: MongoStatus.serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event)
focal_class.full_signature: @Override public void serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event)
focal_class.identifier: serverHeartbeatSucceeded
focal_class.modifiers: @Override public
focal_class.parameters: (ServerHeartbeatSucceededEvent event)
focal_class.return: void
focal_class.signature: void serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent event)
focal_class.class_method_signature: MongoStatus.serverHeartbeatFailed(ServerHeartbeatFailedEvent event)
focal_class.full_signature: @Override public void serverHeartbeatFailed(ServerHeartbeatFailedEvent event)
focal_class.identifier: serverHeartbeatFailed
focal_class.modifiers: @Override public
focal_class.parameters: (ServerHeartbeatFailedEvent event)
focal_class.return: void
focal_class.signature: void serverHeartbeatFailed(ServerHeartbeatFailedEvent event)
focal_class.class_method_signature: MongoStatus.getServerStatus()
focal_class.full_signature: private BasicDBObject getServerStatus()
focal_class.identifier: getServerStatus
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: BasicDBObject
focal_class.signature: BasicDBObject getServerStatus()
focal_class.class_method_signature: MongoStatus.getBuildInfo()
focal_class.full_signature: private BasicDBObject getBuildInfo()
focal_class.identifier: getBuildInfo
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: BasicDBObject
focal_class.signature: BasicDBObject getBuildInfo()
focal_class.class_method_signature: MongoStatus.setVersion(String version)
focal_class.full_signature:  void setVersion(String version)
focal_class.identifier: setVersion
focal_class.parameters: (String version)
focal_class.return: void
focal_class.signature: void setVersion(String version)
focal_class.class_method_signature: MongoStatus.setServerStatus(BasicDBObject serverStatus)
focal_class.full_signature:  void setServerStatus(BasicDBObject serverStatus)
focal_class.identifier: setServerStatus
focal_class.parameters: (BasicDBObject serverStatus)
focal_class.return: void
focal_class.signature: void setServerStatus(BasicDBObject serverStatus)
focal_method.body: @NotNull
      public String getServerDetails() {
          Map<String, Object> details = Maps.newHashMap();
          for (String key : SERVER_DETAIL_FIELD_NAMES) {
              Object value = getServerStatus().get(key);
              if (value != null) {
                  details.put(key, value);
              }
          }
          return details.toString();
      }
focal_method.class_method_signature: MongoStatus.getServerDetails()
focal_method.full_signature: @NotNull public String getServerDetails()
focal_method.identifier: getServerDetails
focal_method.invocations: newHashMap get getServerStatus put toString
focal_method.modifiers: @NotNull public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getServerDetails()