@Component public abstract class AbstractScannerTaskHandler<O extends ObjectType> extends AbstractSearchIterativeTaskHandler<O>
Modifier and Type | Field and Description |
---|---|
protected Clock |
clock |
protected XMLGregorianCalendar |
lastScanTimestamp |
protected XMLGregorianCalendar |
thisScanTimestamp |
modelObjectResolver, prismContext, taskManager
Constructor and Description |
---|
AbstractScannerTaskHandler(Class<O> type,
String taskName,
String taskOperationPrefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
finish(TaskRunResult runResult,
Task task,
OperationResult opResult) |
String |
getCategoryName(Task task)
Returns a category name for a given task.
|
List<String> |
getCategoryNames()
Returns names of task categories provided by this handler.
|
protected boolean |
initialize(TaskRunResult runResult,
Task task,
OperationResult opResult)
First method called.
|
createHandler, createQuery, heartbeat, isLogFinishInfo, refreshStatus, resolveObjectRef, run, setLogFinishInfo
protected XMLGregorianCalendar lastScanTimestamp
protected XMLGregorianCalendar thisScanTimestamp
@Autowired(required=true) protected Clock clock
protected boolean initialize(TaskRunResult runResult, Task task, OperationResult opResult)
AbstractSearchIterativeTaskHandler
initialize
in class AbstractSearchIterativeTaskHandler<O extends ObjectType>
protected void finish(TaskRunResult runResult, Task task, OperationResult opResult) throws SchemaException
finish
in class AbstractSearchIterativeTaskHandler<O extends ObjectType>
SchemaException
public String getCategoryName(Task task)
TaskHandler
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 taskspublic List<String> getCategoryNames()
TaskHandler
Copyright © 2013 evolveum. All rights reserved.