Class ActivityItemProcessingStatisticsUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.task.ActivityItemProcessingStatisticsUtil
-
public class ActivityItemProcessingStatisticsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ActivityItemProcessingStatisticsUtil()
-
Method Summary
-
-
-
Method Detail
-
getItemsProcessedWithFailure
public static int getItemsProcessedWithFailure(ActivityItemProcessingStatisticsType info)
-
getItemsProcessedWithSuccess
public static int getItemsProcessedWithSuccess(ActivityItemProcessingStatisticsType info)
-
getItemsProcessedWithSkip
public static int getItemsProcessedWithSkip(ActivityItemProcessingStatisticsType info)
-
getItemsProcessedWithFailureShallow
public static int getItemsProcessedWithFailureShallow(ActivityItemProcessingStatisticsType info)
-
getItemsProcessedWithSuccessShallow
public static int getItemsProcessedWithSuccessShallow(ActivityItemProcessingStatisticsType info)
-
getItemsProcessedWithSkipShallow
public static int getItemsProcessedWithSkipShallow(ActivityItemProcessingStatisticsType info)
-
getItemsProcessedShallow
public static int getItemsProcessedShallow(ActivityItemProcessingStatisticsType info)
-
getItemsProcessed
public static int getItemsProcessed(ActivityItemProcessingStatisticsType itemProcessingStatistics)
-
getItemsProcessed
public static int getItemsProcessed(@NotNull @NotNull Collection<ActivityStateType> states)
-
getItemsProcessedWithFailure
public static int getItemsProcessedWithFailure(@NotNull @NotNull Collection<ActivityStateType> states)
-
getItemProcessingStatistics
public static ActivityItemProcessingStatisticsType getItemProcessingStatistics(ActivityStateType state)
-
getErrorsShallow
public static int getErrorsShallow(ActivityItemProcessingStatisticsType info)
-
getErrors
public static int getErrors(Collection<ActivityStateType> states)
-
getProcessingTime
public static double getProcessingTime(ActivityItemProcessingStatisticsType info)
-
getProcessingTime
public static double getProcessingTime(@NotNull @NotNull Collection<ActivityStateType> states)
-
getLastProcessedObjectName
public static String getLastProcessedObjectName(ActivityItemProcessingStatisticsType info, Predicate<ProcessedItemSetType> itemSetFilter)
Returns object that was last processed by given task in item set defined by the filter. TODO this should operate on a tree!
-
getLastProcessedObjectOid
public static String getLastProcessedObjectOid(ActivityItemProcessingStatisticsType info, Predicate<ProcessedItemSetType> itemSetFilter)
Returns object OID that was last processed by given task in item set defined by the filter. TODO this should operate on a tree!
-
getLastSuccessObjectName
public static String getLastSuccessObjectName(@NotNull @NotNull TaskType task)
Returns object that was last successfully processed by given physical task. TODO optimize (avoid full summarization)
-
getSummarizedStatistics
@NotNull public static @NotNull ActivityItemProcessingStatisticsType getSummarizedStatistics(@Nullable @Nullable TaskActivityStateType taskActivityState)
-
getLastSuccessObjectName
public static String getLastSuccessObjectName(ActivityItemProcessingStatisticsType stats)
-
add
public static <T> T add(List<T> list, T value)
LikeList.add(Object)
but returns the value.
-
getItemProcessingStatisticsFromStates
public static List<ActivityItemProcessingStatisticsType> getItemProcessingStatisticsFromStates(@NotNull @NotNull Collection<ActivityStateType> states)
-
summarize
@NotNull public static @NotNull ActivityItemProcessingStatisticsType summarize(@NotNull @NotNull Collection<ActivityItemProcessingStatisticsType> deltas)
-
summarize
@NotNull public static @NotNull ActivityItemProcessingStatisticsType summarize(@NotNull @NotNull Stream<ActivityItemProcessingStatisticsType> deltas)
-
addTo
public static void addTo(@NotNull @NotNull ActivityItemProcessingStatisticsType sum, @Nullable @Nullable ActivityItemProcessingStatisticsType delta)
Updates specified summary with given delta.
-
hasItemProcessingInformation
public static boolean hasItemProcessingInformation(@NotNull @NotNull ActivityTreeUtil.ActivityStateInContext cState)
-
hasItemProcessingInformation
public static boolean hasItemProcessingInformation(@Nullable @Nullable ActivityStateType state)
-
format
public static String format(@Nullable @Nullable ActivityItemProcessingStatisticsType source)
-
format
public static String format(@Nullable @Nullable ActivityItemProcessingStatisticsType source, AbstractStatisticsPrinter.Options options)
Formats the information.
-
-