Class ProgressIndicator

java.lang.Object
ro.isdc.wro.maven.plugin.support.ProgressIndicator

public class ProgressIndicator extends Object
Responsible for logging progress related details. Useful to find the best balance between "to much" vs "none" details. This implementation will indicate the state of the progress after a given period of time (ex: each 5 seconds).
Since:
1.7.0
Author:
Alex Objelean
  • Constructor Details

    • ProgressIndicator

      public ProgressIndicator(org.apache.maven.plugin.logging.Log log)
  • Method Details

    • reset

      public void reset()
      resets all counters to zero.
    • logSummary

      public void logSummary()
      Logs the summary as it was collected at this point.
    • onProcessingResource

      public void onProcessingResource(Resource resource)
      A method which should be invoked on each new resource processing, having as a side effect an increment of the counter holding the number of total processed resources.
    • addFoundErrors

      public void addFoundErrors(int errorsToAdd)
      This method has a side effect of incrementing the number of resources containing errors.
      Parameters:
      errorsToAdd - number of errors found during processing. This number will be added to the counter holding total number of found errors.
    • getTotalFoundErrors

      public final int getTotalFoundErrors()
      Returns:
      a total number of found errors.