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 Details

    • TaskOperationStatsUtil

      public TaskOperationStatsUtil()
  • Method Details

    • getOperationStatsFromTree

      public static OperationStatsType getOperationStatsFromTree(TaskType root)
      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

      Computes a sum of two operation statistics. Returns a modifiable object, independent from the source ones.
    • format

      public static String format(OperationStatsType statistics)