Class DeleteTaskHandler
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.util.DeleteTaskHandler
-
- All Implemented Interfaces:
TaskHandler
@Component public class DeleteTaskHandler extends Object implements TaskHandler
- Author:
- semancik
-
-
Field Summary
Fields Modifier and Type Field Description static StringHANDLER_URIprotected ModelServicemodelServiceprotected PrismContextprismContextprotected TaskManagertaskManager
-
Constructor Summary
Constructors Constructor Description DeleteTaskHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategoryName(Task task)Returns a category name for a given task.StatisticsCollectionStrategygetStatisticsCollectionStrategy()Longheartbeat(Task task)voidrefreshStatus(Task task)TaskRunResultrun(RunningTask task, TaskPartitionDefinitionType partition)-
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, run
-
-
-
-
Field Detail
-
HANDLER_URI
public static final String HANDLER_URI
- See Also:
- Constant Field Values
-
taskManager
@Autowired protected TaskManager taskManager
-
modelService
@Autowired protected ModelService modelService
-
prismContext
@Autowired protected PrismContext prismContext
-
-
Method Detail
-
getStatisticsCollectionStrategy
@NotNull public StatisticsCollectionStrategy getStatisticsCollectionStrategy()
- Specified by:
getStatisticsCollectionStrategyin interfaceTaskHandler
-
run
public TaskRunResult run(RunningTask task, TaskPartitionDefinitionType partition)
- Specified by:
runin interfaceTaskHandler
-
heartbeat
public Long heartbeat(Task task)
- Specified by:
heartbeatin interfaceTaskHandler
-
refreshStatus
public void refreshStatus(Task task)
- Specified by:
refreshStatusin interfaceTaskHandler
-
getCategoryName
public String getCategoryName(Task task)
Description copied from interface:TaskHandlerReturns a category name for a given task. In most cases, the name would be independent of concrete task.- Specified by:
getCategoryNamein interfaceTaskHandler- 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"
-
-