Class TaskOperationStatsUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.task.TaskOperationStatsUtil
-
public class TaskOperationStatsUtil extends Object
Utility methods related to task operation statistics.
-
-
Constructor Summary
Constructors Constructor Description TaskOperationStatsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
format(OperationStatsType statistics)
static OperationStatsType
getOperationStatsFromTree(TaskType root, PrismContext prismContext)
Provides aggregated operation statistics from this task and all its subtasks.static boolean
isEmpty(EnvironmentalPerformanceInformationType info)
static boolean
isEmpty(MappingsStatisticsType mappingsStatistics)
static boolean
isEmpty(NotificationsStatisticsType notificationsStatistics)
static boolean
isEmpty(ProvisioningStatisticsType provisioningStatistics)
static OperationStatsType
sum(OperationStatsType a, OperationStatsType b)
Computes a sum of two operation statistics.
-
-
-
Method Detail
-
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
public static boolean isEmpty(EnvironmentalPerformanceInformationType info)
-
isEmpty
public static boolean isEmpty(NotificationsStatisticsType notificationsStatistics)
-
isEmpty
public static boolean isEmpty(MappingsStatisticsType mappingsStatistics)
-
isEmpty
public static boolean isEmpty(ProvisioningStatisticsType provisioningStatistics)
-
sum
public static OperationStatsType sum(OperationStatsType a, OperationStatsType b)
Computes a sum of two operation statistics. Returns a modifiable object, independent from the source ones.
-
format
public static String format(OperationStatsType statistics)
-
-