Class TransientActivityRunStatistics

java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.TransientActivityRunStatistics

public class TransientActivityRunStatistics extends Object
Maintains selected statistical information related to processing items in a current activity run. It is like a simplified version of ActivityItemProcessingStatistics that ignore previous activity runs and different types of outcome (distinguishing only errors and non-errors). Must be thread safe.
  • Field Details

    • startTimeMillis

      protected volatile long startTimeMillis
      The wall clock time when activity run started.
  • Constructor Details

    • TransientActivityRunStatistics

      public TransientActivityRunStatistics()
  • Method Details

    • update

      public void update(boolean isError, double duration, String message)
    • getAverageTime

      public final Double getAverageTime()
    • getProcessingTime

      public final double getProcessingTime()
    • getStartTimeMillis

      public long getStartTimeMillis()
    • getErrors

      public int getErrors()
    • getItemsProcessed

      public int getItemsProcessed()
    • getLastErrorMessage

      @Nullable public @Nullable String getLastErrorMessage()