Class ActivityStatisticsUtil
java.lang.Object
com.evolveum.midpoint.schema.statistics.ActivityStatisticsUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActivityStatisticsType
findOrCreateMatchingInfo
(@NotNull ActivityStatisticsType current, ActivityPath activityPath, boolean create) static String
format
(@Nullable ActivityStatisticsType statistics) static ActivityStatisticsType
getActivityStatsFromTree
(@NotNull TaskType root, @NotNull ActivityPath path) Summarizes activity statistics from a task tree.static List<ObjectActionsExecutedEntryType>
getAllActionsExecuted
(@NotNull TreeNode<ActivityTreeUtil.ActivityStateInContext> tree) static Integer
getAllFailures
(@Nullable TaskActivityStateType taskActivityState) Returns the total number of failures in all activities in this physical task.static Integer
getAllItemsProcessed
(TaskActivityStateType taskActivityState) Returns the total number of items processed in all activities in this physical task.getAllStatisticsPaths
(@NotNull TaskType task) Returns all paths in activity states that point to the statistics.static List<ObjectActionsExecutedEntryType>
getStatePathsStream
(@NotNull TaskType task)
-
Constructor Details
-
ActivityStatisticsUtil
public ActivityStatisticsUtil()
-
-
Method Details
-
findOrCreateMatchingInfo
public static ActivityStatisticsType findOrCreateMatchingInfo(@NotNull @NotNull ActivityStatisticsType current, ActivityPath activityPath, boolean create) -
getAllItemsProcessed
Returns the total number of items processed in all activities in this physical task. Used e.g. to provide "iterations" for task internal performance counters. -
getAllFailures
Returns the total number of failures in all activities in this physical task. -
getSynchronizationTransitions
public static List<SynchronizationSituationTransitionType> getSynchronizationTransitions(@NotNull @NotNull TreeNode<ActivityTreeUtil.ActivityStateInContext> tree) -
getResultingActionsExecuted
public static List<ObjectActionsExecutedEntryType> getResultingActionsExecuted(@NotNull @NotNull TreeNode<ActivityTreeUtil.ActivityStateInContext> tree) -
getAllActionsExecuted
public static List<ObjectActionsExecutedEntryType> getAllActionsExecuted(@NotNull @NotNull TreeNode<ActivityTreeUtil.ActivityStateInContext> tree) -
getAllStatisticsPaths
Returns all paths in activity states that point to the statistics. Local to the current task! -
getStatePathsStream
-
getActivityStatsFromTree
public static ActivityStatisticsType getActivityStatsFromTree(@NotNull @NotNull TaskType root, @NotNull @NotNull ActivityPath path) Summarizes activity statistics from a task tree. -
format
-