- java.lang.Object
-
- com.pervasive.datarush.monitoring.StatisticSupplierTestHelper
-
public class StatisticSupplierTestHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description StatisticSupplierTestHelper()
-
Method Summary
-
-
-
Method Detail
-
counter
public static CounterSupplier counter(StatisticState state, long count)
-
counters
public static List<CounterSupplier> counters(CounterSupplier... counters)
-
assertCounter
public static void assertCounter(StatisticState expectedState, long expectedCount, CounterSupplier actual)
-
aggregate
public static CounterSupplier aggregate(List<CounterSupplier> supps, CounterAggregator agg)
-
finalSnapshot
public static CounterSupplier finalSnapshot(CounterSupplier supp)
-
gauge
public static GaugeSupplier gauge(StatisticState state, long currentValue, long minAllowedValue, long maxAllowedValue)
-
gauges
public static List<GaugeSupplier> gauges(GaugeSupplier... counters)
-
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
public static AccumulatedTimerSupplier timer(StatisticState state, long accumulatedTime)
-
timers
public static IntervalTimerSupplier[] timers(IntervalTimerSupplier... counters)
-
timers
public static AccumulatedTimerSupplier[] timers(AccumulatedTimerSupplier... counters)
-
finalSnapshot
public static IntervalTimerSupplier finalSnapshot(IntervalTimerSupplier supp)
-
finalSnapshot
public static AccumulatedTimerSupplier finalSnapshot(AccumulatedTimerSupplier supp)
-
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
public static IntervalTimerSupplier aggregate(IntervalTimerSupplier... supps)
-
aggregate
public static AccumulatedTimerSupplier aggregate(AccumulatedTimerSupplier... supps)
-
-