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 Summary
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.state.ActivityState
beans
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the activity state.protected void
debugDumpExtra
(StringBuilder sb, int indent) @NotNull ActivityPath
@NotNull AbstractActivityRun<?,
?, WS> @NotNull BucketsReport
@NotNull ConnIdOperationsReport
protected @NotNull String
@NotNull InternalOperationsReport
@NotNull ItemsReport
@NotNull ActivityItemProcessingStatistics
@NotNull ActivityProgress
@NotNull ActivityStatistics
protected @NotNull Task
getTask()
@NotNull ComplexTypeDefinition
void
initialize
(OperationResult result) Puts the activity state into operation: 1.void
markComplete
(OperationResultStatus resultStatus, Long endTimestamp) void
recordRealizationStart
(long startTimestamp) void
recordRealizationStart
(XMLGregorianCalendar startTimestamp) void
recordRunEnd
(Long endTimestamp) void
recordRunStart
(Long startTimestamp) void
void
setResultStatus
(@NotNull OperationResultStatus status) void
setRunEndTimestamp
(Long value) void
void
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.state.ActivityState
addDeleteItemRealValues, 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
CurrentActivityState
-
-
Method Details
-
initialize
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. 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
-
close
public void close()Closes the activity state. Currently this means closing the reports. -
recordRunStart
- Throws:
ActivityRunException
-
recordRunEnd
- Throws:
ActivityRunException
-
recordRealizationStart
- Throws:
ActivityRunException
-
recordRealizationStart
- Throws:
ActivityRunException
-
markComplete
public void markComplete(OperationResultStatus resultStatus, Long endTimestamp) throws ActivityRunException - Throws:
ActivityRunException
-
setRealizationState
- Throws:
ActivityRunException
-
setRunEndTimestamp
- Throws:
ActivityRunException
-
setResultStatus
public void setResultStatus(@NotNull @NotNull OperationResultStatus status) throws ActivityRunException - Throws:
ActivityRunException
-
getActivityPath
- Specified by:
getActivityPath
in classActivityState
-
getActivityRun
-
getItemPath
-
getTask
- Specified by:
getTask
in classActivityState
-
getWorkStateComplexTypeDefinition
- Specified by:
getWorkStateComplexTypeDefinition
in classActivityState
-
getLiveProgress
-
getLiveStatistics
-
getLiveItemProcessingStatistics
-
updateProgressAndStatisticsNoCommit
- Throws:
ActivityRunException
-
updateProgressNoCommit
- Throws:
ActivityRunException
-
getBucketsReport
-
getItemsReport
-
getConnIdOperationsReport
-
getInternalOperationsReport
-
debugDumpExtra
- Specified by:
debugDumpExtra
in classActivityState
-
getEnhancedClassName
- Overrides:
getEnhancedClassName
in classActivityState
-