Class ActivityBasedTaskHandler
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.task.ActivityBasedTaskHandler
- All Implemented Interfaces:
TaskHandler
Handler for tasks that are based on activity (activities) definition.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getBeans()@NotNull StatisticsCollectionStrategyTODO decide what to do with this method.voidvoidonNodeDown(@NotNull TaskType taskBean, @NotNull OperationResult result) Should update the state of the task (or related tasks) when the node on which this task executed was found down.voidonTaskStalled(@NotNull RunningTask task, long stalledSince, @NotNull OperationResult result) Should update the state of the task when the task manager finds that the task is stalled, i.e.voidrefreshStatus(Task task) TODO decide what to do with this method.run(@NotNull RunningTask localCoordinatorTask) Main entry point.voidsetAvoidAutoAssigningArchetypes(boolean avoidAutoAssigningArchetypes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.task.api.TaskHandler
getDefaultChannel
-
Field Details
-
HANDLER_URI
- See Also:
-
-
Constructor Details
-
ActivityBasedTaskHandler
public ActivityBasedTaskHandler()
-
-
Method Details
-
initialize
@PostConstruct public void initialize() -
destroy
@PreDestroy public void destroy() -
getBeans
-
run
Main entry point. We basically delegate all the processing to aTaskRunobject.- Specified by:
runin interfaceTaskHandler- Throws:
TaskException
-
getStatisticsCollectionStrategy
- Specified by:
getStatisticsCollectionStrategyin interfaceTaskHandler
-
heartbeat
TODO decide what to do with this method.- Specified by:
heartbeatin interfaceTaskHandler
-
refreshStatus
TODO decide what to do with this method.- Specified by:
refreshStatusin interfaceTaskHandler
-
setAvoidAutoAssigningArchetypes
public void setAvoidAutoAssigningArchetypes(boolean avoidAutoAssigningArchetypes) -
onNodeDown
public void onNodeDown(@NotNull @NotNull TaskType taskBean, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException Description copied from interface:TaskHandlerShould update the state of the task (or related tasks) when the node on which this task executed was found down. Currently this means releasing buckets allocated to this task. In the future we plan to execute this method within a dynamic repo transaction.- Specified by:
onNodeDownin interfaceTaskHandler- Throws:
SchemaExceptionObjectNotFoundException
-
onTaskStalled
public void onTaskStalled(@NotNull @NotNull RunningTask task, long stalledSince, @NotNull @NotNull OperationResult result) throws CommonException Description copied from interface:TaskHandlerShould update the state of the task when the task manager finds that the task is stalled, i.e. did not update its progress for a given (long) time.- Specified by:
onTaskStalledin interfaceTaskHandler- Throws:
CommonException
-