Class ReindexTaskHandler
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.AbstractTaskHandler<TH,TE>
-
- com.evolveum.midpoint.model.impl.tasks.AbstractModelTaskHandler<SimpleIterativeTaskHandler<O,EC,P>,SimpleIterativeTaskHandler.TaskExecution>
-
- com.evolveum.midpoint.model.impl.tasks.simple.SimpleIterativeTaskHandler<ObjectType,ReindexTaskHandler.MyExecutionContext,ReindexTaskHandler.MyProcessing>
-
- com.evolveum.midpoint.model.impl.tasks.ReindexTaskHandler
-
- All Implemented Interfaces:
TaskHandler
,WorkBucketAwareTaskHandler
@Component public class ReindexTaskHandler extends SimpleIterativeTaskHandler<ObjectType,ReindexTaskHandler.MyExecutionContext,ReindexTaskHandler.MyProcessing>
Task handler for "reindex" task. It simply executes empty modification delta on each repository object.TODO implement also for sub-objects, namely certification cases.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ReindexTaskHandler.MyExecutionContext
class
ReindexTaskHandler.MyProcessing
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.model.impl.tasks.simple.SimpleIterativeTaskHandler
SimpleIterativeTaskHandler.ItemProcessor, SimpleIterativeTaskHandler.PartExecution, SimpleIterativeTaskHandler.TaskExecution
-
-
Field Summary
Fields Modifier and Type Field Description static String
HANDLER_URI
-
Fields inherited from class com.evolveum.midpoint.model.impl.tasks.AbstractModelTaskHandler
clock, clockwork, contextFactory, eventDispatcher, expressionFactory, model, modelObjectResolver, provisioningService, securityEnforcer, synchronizationService, syncTaskHelper, systemObjectCache, taskManager
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.AbstractTaskHandler
globalReportingOptions, lightweightIdentifierGenerator, matchingRuleRegistry, operationExecutionRecorder, prismContext, repositoryService, schemaService, taskTypeName
-
-
Constructor Summary
Constructors Constructor Description ReindexTaskHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReindexTaskHandler.MyExecutionContext
createExecutionContext()
protected ReindexTaskHandler.MyProcessing
createProcessing(ReindexTaskHandler.MyExecutionContext ctx)
String
getArchetypeOid()
String
getCategoryName(Task task)
Returns a category name for a given task.-
Methods inherited from class com.evolveum.midpoint.model.impl.tasks.simple.SimpleIterativeTaskHandler
createTaskExecution
-
Methods inherited from class com.evolveum.midpoint.model.impl.tasks.AbstractModelTaskHandler
getClock, getExpressionFactory, getProvisioningService, getSynchronizationService, getSyncTaskHelper, getSystemObjectsCache
-
Methods inherited from class com.evolveum.midpoint.repo.common.task.AbstractTaskHandler
getCacheConfigurationManager, getGlobalReportingOptions, getLogger, getMatchingRuleRegistry, getOperationExecutionRecorder, getPrismContext, getRepositoryService, getStatisticsCollectionStrategy, getTaskManager, getTaskTypeName, getTracer, heartbeat, refreshStatus, run
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.task.api.TaskHandler
getCategoryNames, getDefaultChannel, run
-
Methods inherited from interface com.evolveum.midpoint.task.api.WorkBucketAwareTaskHandler
onNoMoreBuckets, run
-
-
-
-
Field Detail
-
HANDLER_URI
public static final String HANDLER_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
createExecutionContext
protected ReindexTaskHandler.MyExecutionContext createExecutionContext()
-
createProcessing
protected ReindexTaskHandler.MyProcessing createProcessing(ReindexTaskHandler.MyExecutionContext ctx)
- Specified by:
createProcessing
in classSimpleIterativeTaskHandler<ObjectType,ReindexTaskHandler.MyExecutionContext,ReindexTaskHandler.MyProcessing>
-
getCategoryName
public String getCategoryName(Task task)
Description copied from interface:TaskHandler
Returns a category name for a given task. In most cases, the name would be independent of concrete task.- Parameters:
task
- a task, whose category is to be determined; if getCategoryNames() returns null, this method has to accept null value as this parameter, and return the (one) category name that it gives to all tasks- Returns:
- a user-understandable name, like "LiveSync" or "Workflow"
-
getArchetypeOid
public String getArchetypeOid()
- Returns:
- Archetype OID for tasks that are powered by this handler.
-
-