Class ProgressReporter
java.lang.Object
org.monarchinitiative.lirical.core.analysis.ProgressReporter
Class for pretty progress reporting using logger. The
ProgressReporter is thread-safe.-
Constructor Summary
ConstructorsConstructorDescriptionReport each 5,000-th item usingDEFAULT_COLLECTION_ITEM_NAME.ProgressReporter(int tick) Report each n-th item usingDEFAULT_COLLECTION_ITEM_NAME.ProgressReporter(int tick, String itemTemplateName) Report each n-th item using provided progress message template. -
Method Summary
-
Constructor Details
-
ProgressReporter
public ProgressReporter()Report each 5,000-th item usingDEFAULT_COLLECTION_ITEM_NAME. -
ProgressReporter
public ProgressReporter(int tick) Report each n-th item usingDEFAULT_COLLECTION_ITEM_NAME.- Parameters:
tick- a positive integer.
-
ProgressReporter
Report each n-th item using provided progress message template.- Parameters:
tick- a positive integer used to report each n-th item.itemTemplateName- plural noun denoting the elements being processing (e.g. items, variants, diseases).
-
-
Method Details
-
log
public void log()Log processing of an item. -
summarize
public void summarize()Log summary after processing.
-