Class TaskActivityManager
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.activity.TaskActivityManager
-
@Experimental @Component public class TaskActivityManager extends Object
Provides common functionality related to activities (something likeTaskManager
does for tasks).
-
-
Constructor Summary
Constructors Constructor Description TaskActivityManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteActivityStateAndWorkers(@NotNull String rootTaskOid, boolean deleteWorkers, long subtasksWaitTime, OperationResult parentResult)
TODO somehow unify with TaskStatePurger@NotNull Activity<?,?>
getActivity(Task rootTask, ActivityPath activityPath)
TreeNode<ActivityPerformanceInformation>
getPerformanceInformation(String rootTaskOid, OperationResult result)
ActivityProgressInformation
getProgressInformation(@NotNull String rootTaskOid, @NotNull ActivityProgressInformationBuilder.InformationSource source, @NotNull OperationResult result)
ActivityProgressInformation
getProgressInformationFromTaskTree(String rootTaskOid, OperationResult result)
Assumes that the whole task tree is loaded.@NotNull Map<ActivityPath,WorkersReconciliationResultType>
reconcileWorkers(@NotNull String rootTaskOid, @NotNull OperationResult parentResult)
Note that we reconcile only workers for distributed activities that already have their state.
-
-
-
Method Detail
-
getProgressInformationFromTaskTree
public ActivityProgressInformation getProgressInformationFromTaskTree(String rootTaskOid, OperationResult result) throws SchemaException, ObjectNotFoundException
Assumes that the whole task tree is loaded.
-
getProgressInformation
public ActivityProgressInformation getProgressInformation(@NotNull @NotNull String rootTaskOid, @NotNull @NotNull ActivityProgressInformationBuilder.InformationSource source, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException
-
getPerformanceInformation
public TreeNode<ActivityPerformanceInformation> getPerformanceInformation(String rootTaskOid, OperationResult result) throws SchemaException, ObjectNotFoundException
-
getActivity
@NotNull public @NotNull Activity<?,?> getActivity(Task rootTask, ActivityPath activityPath) throws SchemaException, ConfigurationException
-
reconcileWorkers
@NotNull public @NotNull Map<ActivityPath,WorkersReconciliationResultType> reconcileWorkers(@NotNull @NotNull String rootTaskOid, @NotNull @NotNull OperationResult parentResult) throws SchemaException, ObjectNotFoundException
Note that we reconcile only workers for distributed activities that already have their state.
-
deleteActivityStateAndWorkers
public void deleteActivityStateAndWorkers(@NotNull @NotNull String rootTaskOid, boolean deleteWorkers, long subtasksWaitTime, OperationResult parentResult) throws SchemaException, ObjectNotFoundException
TODO somehow unify with TaskStatePurger
-
-