Class CleanupPartialActivityRun<CP>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun<WD,AH,BS>
-
- com.evolveum.midpoint.repo.common.activity.run.LocalActivityRun<CleanupWorkDefinition,CleanupActivityHandler,AbstractActivityWorkStateType>
-
- com.evolveum.midpoint.model.impl.cleanup.CleanupPartialActivityRun<CP>
-
- Type Parameters:
CP
- Cleanup policy type
- All Implemented Interfaces:
ExecutionSupport
,DebugDumpable
public final class CleanupPartialActivityRun<CP> extends LocalActivityRun<CleanupWorkDefinition,CleanupActivityHandler,AbstractActivityWorkStateType>
Activity execution for an elementary cleanup part. TODO this class is not finished, e.g. statistics reporting is not complete
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.task.api.ExecutionSupport
ExecutionSupport.CountersGroup
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun
activity, activityState, activityStateDefinition, endTimestamp, reportingCharacteristics, startTimestamp, taskRun
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ActivityReportingCharacteristics
createReportingCharacteristics()
This method should be called only after the concrete instance is fully initialized.protected @NotNull ActivityRunResult
runLocally(OperationResult result)
boolean
shouldCreateWorkStateOnInitialization()
-
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.LocalActivityRun
getCurrentResultStatus, getCurrentResultStatusBean, getDesiredTaskObjectRef, isExcludedFromStalenessChecking, runInternal, setCurrentResultStatus, shouldUpdateProgressInStateOverview, updateItemProgressInTreeOverviewIfTimePassed
-
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun
areActionsExecutedStatisticsSupported, areRunRecordsSupported, areStatisticsSupported, areSynchronizationStatisticsSupported, autoComputeRunResult, canRun, debugDump, debugDumpExtra, determineActivityStateDefinition, determineActivityStateForCounters, getActivity, getActivityDefinition, getActivityHandler, getActivityLocalPath, getActivityPath, getActivityState, getActivityStateDefinition, getBeans, getDiagName, getEndTimestamp, getExecutionMode, getItemsProcessed, getLocalParentRun, getPersistenceType, getPrismContext, getReportingCharacteristics, getReportingDefinition, getRunningTask, getStartTimestamp, getStartTimestampRequired, getTaskRun, getTreeStateOverview, getWorkDefinition, getWorkStateTypeName, incrementCounters, incrementProgress, isBucketAnalysis, isDryRun, isFullExecution, isNoExecution, isNonScavengingWorker, isPreview, isProgressSupported, isWorker, recordIterativeOperationStart, run, setInstanceReady, standardRunResult, standardRunResult, 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
-
-
-
-
Method Detail
-
createReportingCharacteristics
@NotNull public @NotNull ActivityReportingCharacteristics createReportingCharacteristics()
Description copied from class:AbstractActivityRun
This method should be called only after the concrete instance is fully initialized.
-
shouldCreateWorkStateOnInitialization
public boolean shouldCreateWorkStateOnInitialization()
- Overrides:
shouldCreateWorkStateOnInitialization
in classAbstractActivityRun<CleanupWorkDefinition,CleanupActivityHandler,AbstractActivityWorkStateType>
- Returns:
- true if the work (business) state should be created right on activity run initialization, along with the rest of the state Maybe we should provide this customization in the "specifics" interface for iterative activities.
-
runLocally
@NotNull protected @NotNull ActivityRunResult runLocally(OperationResult result) throws ActivityRunException
- Specified by:
runLocally
in classLocalActivityRun<CleanupWorkDefinition,CleanupActivityHandler,AbstractActivityWorkStateType>
- Throws:
ActivityRunException
-
-