Class CurrentBucketStatistics
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.CurrentBucketStatistics
-
public class CurrentBucketStatistics extends Object
Maintains selected statistical information related to processing items during task part execution. Currently this means it is bound to a single bucket. Must be thread safe.
-
-
Field Summary
Fields Modifier and Type Field Description protected Long
endTimeMillis
When the bucket execution ended.protected long
startTimeMillis
The wall clock time when the bucket execution started.
-
Constructor Summary
Constructors Constructor Description CurrentBucketStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
addDuration(double delta)
Long
getEndTimeMillis()
int
getErrors()
int
getItemsProcessed()
long
getStartTimeMillis()
long
getWallClockTime(long now)
-
-
-
Field Detail
-
startTimeMillis
protected volatile long startTimeMillis
The wall clock time when the bucket execution started.
-
endTimeMillis
protected volatile Long endTimeMillis
When the bucket execution ended.
-
-
Method Detail
-
addDuration
public double addDuration(double delta)
-
getWallClockTime
public final long getWallClockTime(long now)
-
getStartTimeMillis
public long getStartTimeMillis()
-
getEndTimeMillis
public Long getEndTimeMillis()
-
getErrors
public int getErrors()
-
getItemsProcessed
public int getItemsProcessed()
-
-