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