com.evolveum.midpoint.task.api
Interface TaskHandler
- All Known Implementing Classes:
- ImportAccountsFromResourceTaskHandler, ImportObjectsFromCamelTaskHandler, ImportObjectsFromFileTaskHandler, LiveSyncTaskHandler, ModelOperationTaskHandler, NoOpTaskHandler, RecomputeTaskHandler, ReconciliationTaskHandler, WaitForSubtasksTaskHandler, WfTaskHandler
public interface TaskHandler
- Author:
- Radovan Semancik
run
TaskRunResult run(Task task)
heartbeat
java.lang.Long heartbeat(Task task)
refreshStatus
void refreshStatus(Task task)
getCategoryName
java.lang.String getCategoryName(Task task)
- 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"
getCategoryNames
java.util.List<java.lang.String> getCategoryNames()
- Returns names of task categories provided by this handler. Usually it will be one-item list.
- Returns:
- a list of category names; may be null - in that case the category info is given by getCategoryName(null)
Copyright © 2012 evolveum. All Rights Reserved.