Class PercentProgressLogger

java.lang.Object
uk.ac.ebi.utils.runcontrol.ProgressLogger
uk.ac.ebi.utils.runcontrol.PercentProgressLogger

public class PercentProgressLogger extends ProgressLogger

It's like ProgressLogger but reports percentages, given a max value that you set initially.

Note that the prog report action receives the progress percentages, not the absolute values.

Instead, ProgressLogger.update(long) and its variants receives an absolute increment, as this is to be used with the progressResolution property.

ProgressLogger.getProgress() reports the absolute progress too, while getPercentProgress() is provided as a shortcut to the percent progress.

Author:
brandizi
Date:
22 May 2019
  • Constructor Details

    • PercentProgressLogger

      public PercentProgressLogger(String logMessageTemplate, long maxProgress, long progressResolutionPercent)
    • PercentProgressLogger

      public PercentProgressLogger(String logMessageTemplate, long maxProgress)
    • PercentProgressLogger

      public PercentProgressLogger(long maxProgress)
  • Method Details