Class ResourceObjectsReconciliationActivityRun
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun<WD,AH,BS>
com.evolveum.midpoint.repo.common.activity.run.LocalActivityRun<WD,AH,WS>
com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRun<C,WD,AH,WS>
com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRun<ShadowType,ReconciliationWorkDefinition,ReconciliationActivityHandler,ReconciliationWorkStateType>
com.evolveum.midpoint.model.impl.sync.tasks.recon.PartialReconciliationActivityRun
com.evolveum.midpoint.model.impl.sync.tasks.recon.ResourceObjectsReconciliationActivityRun
- All Implemented Interfaces:
ImplicitSegmentationResolver
,IterativeActivityRunSpecifics
,SearchBasedActivityRunSpecifics<ShadowType>
,ExecutionSupport
,DebugDumpable
public final class ResourceObjectsReconciliationActivityRun
extends PartialReconciliationActivityRun
Execution of resource objects reconciliation (the main part of reconciliation).
-
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.SearchBasedActivityRun
searchSpecification
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRun
beans, bucket, coordinator, errorState, transientRunStatistics
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun
activity, activityState, endTimestamp, startTimestamp, taskRun
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeRun
(OperationResult result) Called before the run.Returns a provider of definitions for runtime items (e.g.@NotNull ActivityReportingCharacteristics
This method should be called only after the concrete instance is fully initialized.void
customizeSearchOptions
(SearchSpecification<ShadowType> searchSpecification, OperationResult result) Customizes search options present in the original search specification (usually derived from the task configuration).protected String
Channel URI that should be set into the task during this activity run.long
long
boolean
processItem
(@NotNull ShadowType object, @NotNull ItemProcessingRequest<ShadowType> request, RunningTask workerTask, OperationResult result) Processes given item that came as part of a request.Methods inherited from class com.evolveum.midpoint.model.impl.sync.tasks.recon.PartialReconciliationActivityRun
getDesiredTaskObjectRef, getModelBeans, useOtherActivityStateForCounters
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRun
countObjects, determineCurrentBucketSize, determineOverallSize, getDefaultErrorAction, getItemType, getQuery, getSchemaService, getSearchOptions, getSearchSpecificationRequired, getTaskManager, isInRepository, iterateOverItemsInBucket, prepareItemSourceForCurrentBucket, processItem
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRun
canUpdateThreadLocalStatistics, determineActivityStateForCounters, disableGlobalConnIdOperationsListener, enableGlobalConnIdOperationsListener, ensureNoParallelism, ensureNoWorkerThreads, getBucket, getConnIdOperationsReport, getContextDescription, getContextDescriptionSpaced, getErrorState, getItemsReport, getRootTaskOid, getShortName, getTransientRunStatistics, handleError, isMultithreaded, runLocally, setContextDescription, shouldReportConnIdOperations, shouldReportInternalOperations, shouldReportItems, updateStatistics
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.LocalActivityRun
getCurrentResultStatusBean, getSimulationTransaction, getTaskExecutionMode, isExcludedFromStalenessChecking, runInternal, shouldUpdateProgressInStateOverview, updateItemProgressInTreeOverviewIfTimePassed
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun
areActionsExecutedStatisticsSupported, areRunRecordsSupported, areStatisticsSupported, areSynchronizationStatisticsSupported, canRun, debugDump, debugDumpExtra, determineActivityStateDefinition, ensureFullExecution, ensureNoDryRun, ensureNoPreviewNorDryRun, getActivity, getActivityDefinition, getActivityExecutionMode, getActivityHandler, getActivityPath, getActivityState, getActivityStateDefinition, getBeans, getItemsProcessed, getLocalParentRun, getReportingCharacteristics, getRunningTask, getStartTimestampRequired, getTaskRun, getTreeStateOverview, getWorkDefinition, incrementCounters, incrementProgress, isBucketAnalysis, isDryRun, isFullExecution, isNoExecution, isNonScavengingWorker, isProgressSupported, isWorker, onActivityRealizationComplete, onActivityRealizationStart, recordIterativeOperationStart, run, setInstanceReady, shouldCreateWorkStateOnInitialization, 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
Methods inherited from interface com.evolveum.midpoint.task.api.ExecutionSupport
getActivityExecutionMode, getActivityPath, incrementCounters, recordIterativeOperationStart
Methods inherited from interface com.evolveum.midpoint.repo.common.activity.run.IterativeActivityRunSpecifics
afterBucketProcessing, afterRun, beforeBucketProcessing, resolveImplicitSegmentation
Methods inherited from interface com.evolveum.midpoint.repo.common.activity.run.SearchBasedActivityRunSpecifics
createCustomSearchSpecification, customizeQuery, doesRequireDirectRepositoryAccess
-
Method Details
-
beforeRun
Description copied from interface:IterativeActivityRunSpecifics
Called before the run. Note that e.g. for search-based activities the search specification is *not* known at this moment.- Specified by:
beforeRun
in interfaceIterativeActivityRunSpecifics
- Overrides:
beforeRun
in classPartialReconciliationActivityRun
- Throws:
CommonException
ActivityRunException
-
createReportingCharacteristics
Description copied from class:AbstractActivityRun
This method should be called only after the concrete instance is fully initialized.- Specified by:
createReportingCharacteristics
in interfaceIterativeActivityRunSpecifics
- Overrides:
createReportingCharacteristics
in classLocalActivityRun<ReconciliationWorkDefinition,
ReconciliationActivityHandler, ReconciliationWorkStateType> - Returns:
- Reporting characteristics of the activity run. They e.g. provide default values
for
ActivityReportingDefinition
.
-
customizeSearchOptions
public void customizeSearchOptions(SearchSpecification<ShadowType> searchSpecification, OperationResult result) Description copied from interface:SearchBasedActivityRunSpecifics
Customizes search options present in the original search specification (usually derived from the task configuration). The activity can either add or modify some options in the provided object - if it's not null - or replace the whole object by its own version. -
createItemDefinitionProvider
Description copied from interface:SearchBasedActivityRunSpecifics
Returns a provider of definitions for runtime items (e.g. attributes) that are needed in bucket filters. Usually needed for activities that work with resource objects. -
processItem
public boolean processItem(@NotNull @NotNull ShadowType object, @NotNull @NotNull ItemProcessingRequest<ShadowType> request, RunningTask workerTask, OperationResult result) throws CommonException, ActivityRunException Description copied from interface:SearchBasedActivityRunSpecifics
Processes given item that came as part of a request. BEWARE: Item may have been preprocessed, and may be different from the item present in the request.- Throws:
CommonException
ActivityRunException
-
getResourceReconCount
public long getResourceReconCount() -
getResourceReconErrors
public long getResourceReconErrors() -
getChannelOverride
Description copied from class:IterativeActivityRun
Channel URI that should be set into the task during this activity run. (If not null.)
-