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 ofActivityItemProcessingStatistics
that ignore previous activity runs and different types of outcome (distinguishing only errors and non-errors). Must be thread safe.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
startTimeMillis
The wall clock time when activity run started.
-
Constructor Summary
Constructors Constructor Description TransientActivityRunStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getAverageTime()
int
getErrors()
int
getItemsProcessed()
double
getProcessingTime()
long
getStartTimeMillis()
void
update(boolean isError, double duration)
-
-
-
Method Detail
-
update
public void update(boolean isError, double duration)
-
getAverageTime
public final Double getAverageTime()
-
getProcessingTime
public final double getProcessingTime()
-
getStartTimeMillis
public long getStartTimeMillis()
-
getErrors
public int getErrors()
-
getItemsProcessed
public int getItemsProcessed()
-
-