Class TaskOperationStatsUtil
java.lang.Object
com.evolveum.midpoint.schema.util.task.TaskOperationStatsUtil
Utility methods related to task operation statistics.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
format
(OperationStatsType statistics) static OperationStatsType
getOperationStatsFromTree
(TaskType root, PrismContext prismContext) Provides aggregated operation statistics from this task and all its subtasks.static boolean
static boolean
isEmpty
(MappingsStatisticsType mappingsStatistics) static boolean
isEmpty
(NotificationsStatisticsType notificationsStatistics) static boolean
isEmpty
(ProvisioningStatisticsType provisioningStatistics) static OperationStatsType
Computes a sum of two operation statistics.
-
Constructor Details
-
TaskOperationStatsUtil
public TaskOperationStatsUtil()
-
-
Method Details
-
getOperationStatsFromTree
public static OperationStatsType getOperationStatsFromTree(TaskType root, PrismContext prismContext) Provides aggregated operation statistics from this task and all its subtasks. Works with stored operation stats, obviously. (We have no task instances here.) Assumes that the task has all subtasks filled-in. Currently does NOT support some low-level performance statistics, namely: 1. cachesPerformanceInformation, 2. operationsPerformanceInformation, 3. cachingConfiguration. -
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
sum
Computes a sum of two operation statistics. Returns a modifiable object, independent from the source ones. -
format
-