Class OutcomeKeyedCounterTypeUtil
java.lang.Object
com.evolveum.midpoint.schema.statistics.OutcomeKeyedCounterTypeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCounters(List<OutcomeKeyedCounterType> sumCounters, List<OutcomeKeyedCounterType> deltaCounters) Adds two lists of counters: finds matching pairs and adds them.static intgetCount(List<? extends OutcomeKeyedCounterType> counters, Predicate<OutcomeKeyedCounterType> filter) static Predicate<OutcomeKeyedCounterType>static intgetFailureCount(List<? extends OutcomeKeyedCounterType> counters) static ItemProcessingOutcomeTypegetOutcome(OutcomeKeyedCounterType counter) static intgetSkipCount(List<? extends OutcomeKeyedCounterType> counters) static intgetSuccessCount(List<? extends OutcomeKeyedCounterType> counters) static intincrementCounter(List<OutcomeKeyedCounterType> counters, QualifiedItemProcessingOutcomeType outcome) Increments counter corresponding to given outcome.static booleanisFailure(OutcomeKeyedCounterType counter) static booleanisSkip(OutcomeKeyedCounterType counter) static booleanisSuccess(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)
-