Class IndexerStatisticsTracker


  • public final class IndexerStatisticsTracker
    extends Object
    • Constructor Detail

      • IndexerStatisticsTracker

        public IndexerStatisticsTracker​(Logger logger)
    • Method Detail

      • onIndexingStarting

        public void onIndexingStarting()
      • onEntryEnd

        public void onEntryEnd​(String entryPath,
                               long startEntryNanos,
                               long endEntryMakeDocumentNanos)
        Mark that an entry completed indexing. If indexing the entry was slow, then a message is logged.
        Parameters:
        entryPath - the path
        startEntryNanos - timestamp of when the current entry started being indexed
        endEntryMakeDocumentNanos - timestamp of when the current entry finished the makeDocument phase.
      • formatStats

        public String formatStats()