Class OutcomeKeyedCounterTypeUtil
- java.lang.Object
-
- com.evolveum.midpoint.schema.statistics.OutcomeKeyedCounterTypeUtil
-
public class OutcomeKeyedCounterTypeUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description OutcomeKeyedCounterTypeUtil()
-
Method Summary
-
-
-
Method Detail
-
addCounters
public static void addCounters(List<OutcomeKeyedCounterType> sumCounters, List<OutcomeKeyedCounterType> deltaCounters)
Adds two lists of counters: finds matching pairs and adds them.
-
incrementCounter
public static int incrementCounter(List<OutcomeKeyedCounterType> counters, QualifiedItemProcessingOutcomeType outcome, PrismContext prismContext)
Increments counter corresponding to given outcome.
-
getSuccessCount
public static int getSuccessCount(List<? extends OutcomeKeyedCounterType> counters)
-
getFailureCount
public static int getFailureCount(List<? extends OutcomeKeyedCounterType> counters)
-
getSkipCount
public static int getSkipCount(List<? extends OutcomeKeyedCounterType> counters)
-
getCount
public static int getCount(List<? extends OutcomeKeyedCounterType> counters, Predicate<OutcomeKeyedCounterType> filter)
-
isSuccess
public static boolean isSuccess(OutcomeKeyedCounterType counter)
-
isFailure
public static boolean isFailure(OutcomeKeyedCounterType counter)
-
isSkip
public static boolean isSkip(OutcomeKeyedCounterType counter)
-
getOutcome
public static ItemProcessingOutcomeType getOutcome(OutcomeKeyedCounterType counter)
-
getOutcomeQualifierUri
public static String getOutcomeQualifierUri(OutcomeKeyedCounterType counter)
-
getCounterFilter
public static Predicate<OutcomeKeyedCounterType> getCounterFilter(ItemProcessingOutcomeType outcome)
-
-