test_class.declarator: builderProvider = new DocumentMKBuilderProvider()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public DocumentMKBuilderProvider builderProvider = new DocumentMKBuilderProvider();
test_class.type: DocumentMKBuilderProvider
test_class.var_name: builderProvider
test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreStatsPrinterTest.java
test_class.identifier: DocumentStoreStatsPrinterTest
test_case.body: @Test
      public void printStats() {
          DocumentNodeStore ns = builderProvider.newBuilder().getNodeStore();
          DocumentStoreStatsPrinter printer = new DocumentStoreStatsPrinter();
          printer.nodeStore = ns;
  
          StringWriter sw = new StringWriter();
          PrintWriter pw = new PrintWriter(sw);
          printer.print(pw, Format.TEXT, false);
  
          List<String> lines = asList(sw.toString().split("\\r?\\n"));
          assertThat(lines, hasItem("type=memory"));
          assertThat(lines, hasItem("nodes=1"));
          assertThat(lines, hasItem("clusterNodes=1"));
      }
test_case.class_method_signature: DocumentStoreStatsPrinterTest.printStats()
test_case.full_signature: @Test public void printStats()
test_case.identifier: printStats
test_case.invocations: getNodeStore newBuilder print asList split toString assertThat hasItem assertThat hasItem assertThat hasItem
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void printStats()
focal_class.declarator: nodeStore
focal_class.modifier: @Reference
focal_class.original_string: @Reference
      DocumentNodeStore nodeStore;
focal_class.type: DocumentNodeStore
focal_class.var_name: nodeStore
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreStatsPrinter.java
focal_class.identifier: DocumentStoreStatsPrinter
focal_class.interfaces: implements InventoryPrinter
focal_class.class_method_signature: DocumentStoreStatsPrinter.print(PrintWriter pw, Format format, boolean isZip)
focal_class.full_signature: @Override public void print(PrintWriter pw, Format format, boolean isZip)
focal_class.identifier: print
focal_class.modifiers: @Override public
focal_class.parameters: (PrintWriter pw, Format format, boolean isZip)
focal_class.return: void
focal_class.signature: void print(PrintWriter pw, Format format, boolean isZip)
focal_class.class_method_signature: DocumentStoreStatsPrinter.printTitle(PrintWriter pw, String title)
focal_class.full_signature: private void printTitle(PrintWriter pw, String title)
focal_class.identifier: printTitle
focal_class.modifiers: private
focal_class.parameters: (PrintWriter pw, String title)
focal_class.return: void
focal_class.signature: void printTitle(PrintWriter pw, String title)
focal_class.class_method_signature: DocumentStoreStatsPrinter.print(PrintWriter pw, Map<String, String> data)
focal_class.full_signature: private void print(PrintWriter pw, Map<String, String> data)
focal_class.identifier: print
focal_class.modifiers: private
focal_class.parameters: (PrintWriter pw, Map<String, String> data)
focal_class.return: void
focal_class.signature: void print(PrintWriter pw, Map<String, String> data)
focal_method.body: @Override
      public void print(PrintWriter pw, Format format, boolean isZip) {
          if (format != Format.TEXT) {
              return;
          }
          DocumentStore store = nodeStore.getDocumentStore();
          printTitle(pw, "DocumentStore metadata");
          print(pw, store.getMetadata());
          pw.println();
          printTitle(pw, "DocumentStore statistics");
          print(pw, store.getStats());
          pw.flush();
      }
focal_method.class_method_signature: DocumentStoreStatsPrinter.print(PrintWriter pw, Format format, boolean isZip)
focal_method.full_signature: @Override public void print(PrintWriter pw, Format format, boolean isZip)
focal_method.identifier: print
focal_method.invocations: getDocumentStore printTitle print getMetadata println printTitle print getStats flush
focal_method.modifiers: @Override public
focal_method.parameters: (PrintWriter pw, Format format, boolean isZip)
focal_method.return: void
focal_method.signature: void print(PrintWriter pw, Format format, boolean isZip)