Class ActivityItemProcessingStatistics
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.state.Initializable
com.evolveum.midpoint.repo.common.activity.run.state.ActivityItemProcessingStatistics
This is "live" iteration information.
 BEWARE: When explicitly enabled, automatically updates also the structured progress when recording operation end.
 This is somewhat experimental and should be reconsidered.
 Thread safety: Must be thread safe.
 1. Updates are invoked in the context of the thread executing the activity.
 2. But queries are invoked either from this thread, or from some observer (task manager or GUI thread).
 Implementation: Because the iteration information grew to quite complex structure,
 we no longer keep "native" form and "bean" form separately. Now we simply store the bean
 form, and provide the necessary synchronization.
 Also, we no longer distinguish start value and delta. Everything is kept in the 
value.- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic Stringstatic Stringformat(ActivityItemProcessingStatisticsType source, AbstractStatisticsPrinter.Options options) Formats the information.static Stringformat(List<ActivityItemProcessingStatisticsType> sources) int@NotNull ActivityItemProcessingStatisticsTypeReturns a current value of this statistics.voidinitialize(ActivityItemProcessingStatisticsType initialValue) recordOperationStart(IterativeOperationStartInfo startInfo) Records an operation that has been just started.voidrecordRunEnd(long startTimestamp, long endTimestamp) voidrecordRunStart(long startTimestamp) voidupdateStatisticsForSimpleClients(boolean forced) Very ugly hack.Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.state.InitializableassertInitialized, doInitialize
- 
Method Details- 
initialize
- 
getValueCopyReturns a current value of this statistics. It is copied because of thread safety issues.
- 
recordOperationStartRecords an operation that has been just started. Stores it into the list of current operations. Returns an object that should receive the status of the operation, in order to record the operation end.
- 
recordRunStartpublic void recordRunStart(long startTimestamp) 
- 
recordRunEndpublic void recordRunEnd(long startTimestamp, long endTimestamp) 
- 
format
- 
format
- 
formatpublic static String format(ActivityItemProcessingStatisticsType source, AbstractStatisticsPrinter.Options options) Formats the information.
- 
getItemsProcessedpublic int getItemsProcessed()
- 
updateStatisticsForSimpleClientsVery ugly hack. We create our own operation result (!!).
 
-