Class ActivityProgress
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.state.Initializable
com.evolveum.midpoint.repo.common.activity.run.state.ActivityProgress
Takes care of reporting the activity progress.
The counters are managed in memory, and written to the running task (in-memory + repo representation) in regular intervals.
Although this is mostly relevant for iterative activities (see
IterativeActivityRun
), it has its
place also in non-standard activities that do their own iteration, like the cleanup activity.
The distinction between open and closed items is relevant to activities with "commit points", like bucketed ones.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
@Nullable Integer
@NotNull ItemsProgressOverviewType
@NotNull ActivityProgressType
Returns a clone of the current value.void
increment
(QualifiedItemProcessingOutcomeType outcome, @NotNull ActivityProgress.Counters counters) Increments the progress.void
initialize
(ActivityProgressType initialValue) void
Moves "uncommitted" counters to "committed" state.void
setExpectedInCurrentBucket
(Integer expectedInCurrentBucket) void
setExpectedTotal
(Integer expectedTotal) Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.state.Initializable
assertInitialized, doInitialize
-
Method Details
-
initialize
-
increment
public void increment(QualifiedItemProcessingOutcomeType outcome, @NotNull @NotNull ActivityProgress.Counters counters) Increments the progress. -
onCommitPoint
public void onCommitPoint()Moves "uncommitted" counters to "committed" state. -
clearUncommitted
public void clearUncommitted() -
getExpectedTotal
-
setExpectedTotal
-
setExpectedInCurrentBucket
-
getValueCopy
Returns a clone of the current value. The cloning is because of thread safety requirements. -
getOverview
-