Class CurrentActivityState<WS extends AbstractActivityWorkStateType>
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.state.ActivityState
com.evolveum.midpoint.repo.common.activity.run.state.CurrentActivityState<WS>
- Type Parameters:
- WS- Work (business) state of the activity.
- All Implemented Interfaces:
- DebugDumpable
Activity state for the current activity run. Provides the full functionality, including creation of the work state
 and maintenance of live progress and statistics.
- 
Field SummaryFields inherited from class com.evolveum.midpoint.repo.common.activity.run.state.ActivityStatebeansFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes the activity state.protected voiddebugDumpExtra(StringBuilder sb, int indent) @NotNull ActivityPath@NotNull AbstractActivityRun<?,?, WS> @NotNull BucketsReport@NotNull ConnIdOperationsReportprotected @NotNull String@NotNull InternalOperationsReport@NotNull ItemsReport@NotNull ActivityItemProcessingStatistics@NotNull ActivityProgress@NotNull ActivityStatisticsprotected @NotNull TaskgetTask()@NotNull ComplexTypeDefinitionvoidinitialize(OperationResult result) Puts the activity state into operation: 1. finds/creates activity and optionally also work state container values; 2. initializes live structures - currently that means progress and statistics objects.voidmarkComplete(OperationResultStatus resultStatus, Long endTimestamp) voidrecordRealizationStart(long startTimestamp) voidrecordRealizationStart(XMLGregorianCalendar startTimestamp) voidrecordRunEnd(Long endTimestamp) voidrecordRunStart(Long startTimestamp) voidvoidsetResultStatus(@NotNull OperationResultStatus status) voidsetRunEndTimestamp(Long value) voidvoidMethods inherited from class com.evolveum.midpoint.repo.common.activity.run.state.ActivityStateaddDeleteItemRealValues, debugDump, flushPendingTaskModifications, flushPendingTaskModificationsChecked, getActivityStateDownwards, getActivityStatesUpwardsForParent, getActivityStateUpwards, getBucketingRole, getCurrentActivityStateInParentTask, getParentActivityState, getPropertyRealValue, getRealizationStartTimestamp, getRealizationState, getResultStatus, getSimulationResultOid, getSimulationResultRef, getWorkStateItemRealValueClone, getWorkStatePropertyRealValue, getWorkStateReferenceRealValue, getWorkStateReferenceRealValues, incrementCounters, isComplete, isScavenger, isSimulationResultCreated, isWorker, setItemRealValues, setItemRealValuesCollection, setSimulationResultCreated, setSimulationResultOid, setWorkStateItemRealValues, setWorkStateItemRealValues, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
- 
Constructor Details- 
CurrentActivityState
 
- 
- 
Method Details- 
initializePuts the activity state into operation: 1. finds/creates activity and optionally also work state container values; 2. initializes live structures - currently that means progress and statistics objects. This method may or may not be called just before the real run. For example, there can be a need to initialize the state of all child activities before starting their real run.- Throws:
- ActivityRunException
 
- 
closepublic void close()Closes the activity state. Currently this means closing the reports.
- 
recordRunStart- Throws:
- ActivityRunException
 
- 
recordRunEnd- Throws:
- ActivityRunException
 
- 
recordRealizationStart- Throws:
- ActivityRunException
 
- 
recordRealizationStart- Throws:
- ActivityRunException
 
- 
markCompletepublic void markComplete(OperationResultStatus resultStatus, Long endTimestamp) throws ActivityRunException - Throws:
- ActivityRunException
 
- 
setRealizationState- Throws:
- ActivityRunException
 
- 
setRunEndTimestamp- Throws:
- ActivityRunException
 
- 
setResultStatuspublic void setResultStatus(@NotNull @NotNull OperationResultStatus status) throws ActivityRunException - Throws:
- ActivityRunException
 
- 
getActivityPath- Specified by:
- getActivityPathin class- ActivityState
 
- 
getActivityRun
- 
getItemPath
- 
getTask- Specified by:
- getTaskin class- ActivityState
 
- 
getWorkStateComplexTypeDefinition- Specified by:
- getWorkStateComplexTypeDefinitionin class- ActivityState
 
- 
getLiveProgress
- 
getLiveStatistics
- 
getLiveItemProcessingStatistics
- 
updateProgressAndStatisticsNoCommit- Throws:
- ActivityRunException
 
- 
updateProgressNoCommit- Throws:
- ActivityRunException
 
- 
getBucketsReport
- 
getItemsReport
- 
getConnIdOperationsReport
- 
getInternalOperationsReport
- 
debugDumpExtra- Specified by:
- debugDumpExtrain class- ActivityState
 
- 
getEnhancedClassName- Overrides:
- getEnhancedClassNamein class- ActivityState
 
 
-