Class DownloadStageStatistics
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.pipelined.DownloadStageStatistics
-
public class DownloadStageStatistics extends Object
Aggregates statistics when downloading from Mongo with two threads
-
-
Constructor Summary
Constructors Constructor Description DownloadStageStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formatStats(long durationMillis)
long
getDocumentsDownloadedTotal()
long
getDocumentsDownloadedTotalBytes()
long
getTotalEnqueueWaitTimeMillis()
void
incrementDocumentsDownloadedTotal()
void
incrementDocumentsDownloadedTotalBytes(long bytes)
void
incrementTotalEnqueueWaitTimeMillis(long millis)
void
publishStatistics(StatisticsProvider statisticsProvider, IndexingReporter reporter, long durationMillis)
String
toString()
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
-
Method Detail
-
getTotalEnqueueWaitTimeMillis
public long getTotalEnqueueWaitTimeMillis()
-
getDocumentsDownloadedTotal
public long getDocumentsDownloadedTotal()
-
getDocumentsDownloadedTotalBytes
public long getDocumentsDownloadedTotalBytes()
-
incrementTotalEnqueueWaitTimeMillis
public void incrementTotalEnqueueWaitTimeMillis(long millis)
-
incrementDocumentsDownloadedTotal
public void incrementDocumentsDownloadedTotal()
-
incrementDocumentsDownloadedTotalBytes
public void incrementDocumentsDownloadedTotalBytes(long bytes)
-
publishStatistics
public void publishStatistics(StatisticsProvider statisticsProvider, IndexingReporter reporter, long durationMillis)
-
formatStats
public String formatStats(long durationMillis)
-
-