java.lang.Object
com.pervasive.datarush.monitoring.StatisticSupplierTestHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccumulatedTimerSupplieraggregate(AccumulatedTimerSupplier... supps) static IntervalTimerSupplieraggregate(IntervalTimerSupplier... supps) static CounterSupplieraggregate(List<CounterSupplier> supps, CounterAggregator agg) static GaugeSupplieraggregate(List<GaugeSupplier> supps, GaugeAggregator agg, RangeAggregator ragg) static voidassertCounter(StatisticState expectedState, long expectedCount, CounterSupplier actual) static voidassertGauge(StatisticState state, long currentValue, long minAllowedValue, long maxAllowedValue, GaugeSupplier actual) static voidassertTimer(StatisticState state, long startTimeMillis, long endTimeMillis, IntervalTimerSupplier timer) static voidassertTimer(StatisticState state, long accumulatedTime, AccumulatedTimerSupplier timer) static CounterSuppliercounter(StatisticState state, long count) static List<CounterSupplier>counters(CounterSupplier... counters) static AccumulatedTimerSupplierstatic CounterSupplierfinalSnapshot(CounterSupplier supp) static IntervalTimerSupplierstatic GaugeSuppliergauge(StatisticState state, long currentValue, long minAllowedValue, long maxAllowedValue) static List<GaugeSupplier>gauges(GaugeSupplier... counters) static AccumulatedTimerSuppliertimer(StatisticState state, long accumulatedTime) static IntervalTimerSuppliertimer(StatisticState state, long startTimeMillis, long endTimeMillis) static AccumulatedTimerSupplier[]timers(AccumulatedTimerSupplier... counters) static IntervalTimerSupplier[]timers(IntervalTimerSupplier... counters)
-
Constructor Details
-
StatisticSupplierTestHelper
public StatisticSupplierTestHelper()
-
-
Method Details
-
counter
-
counters
-
assertCounter
public static void assertCounter(StatisticState expectedState, long expectedCount, CounterSupplier actual) -
aggregate
-
finalSnapshot
-
gauge
public static GaugeSupplier gauge(StatisticState state, long currentValue, long minAllowedValue, long maxAllowedValue) -
gauges
-
assertGauge
public static void assertGauge(StatisticState state, long currentValue, long minAllowedValue, long maxAllowedValue, GaugeSupplier actual) -
aggregate
public static GaugeSupplier aggregate(List<GaugeSupplier> supps, GaugeAggregator agg, RangeAggregator ragg) -
timer
public static IntervalTimerSupplier timer(StatisticState state, long startTimeMillis, long endTimeMillis) -
timer
-
timers
-
timers
-
finalSnapshot
-
finalSnapshot
-
assertTimer
public static void assertTimer(StatisticState state, long startTimeMillis, long endTimeMillis, IntervalTimerSupplier timer) -
assertTimer
public static void assertTimer(StatisticState state, long accumulatedTime, AccumulatedTimerSupplier timer) -
aggregate
-
aggregate
-