Module datarush.commons
Interface AccumulatedTimerSupplier
-
- All Superinterfaces:
StatisticSupplier
- All Known Implementing Classes:
AccumulatedTimer,AccumulatedTimerSnapshot
public interface AccumulatedTimerSupplier extends StatisticSupplier
Abstract statistic that represents "wall-clock" time of some runtime activity. Timers consist of a state(unavailable, started, stopped), a start time, and an end time. Timers always aggregate in the following way:- The aggregated
StatisticSupplier.getState()isStatisticState.UNAVAILABLEif all partitions are unavailable. Otherwise the aggregatedStatisticSupplier.getState()isStatisticState.FINISHEDif all partitions areStatisticState.FINISHED. Otherwise the aggregatedStatisticSupplier.getState()isStatisticState.ACTIVE - The aggregated
getAccumulatedTimeMillis()is defined to be the sum over all partitions of the partition'sgetAccumulatedTimeMillis()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAccumulatedTimeMillis()The accumulated time so far.AccumulatedTimerSuppliersnapshot()Creates a snapshot of this timer.-
Methods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier
getState
-
-
-
-
Method Detail
-
getAccumulatedTimeMillis
long getAccumulatedTimeMillis()
The accumulated time so far. For aggregations, this is the sum over all partitions of the to be the sum over all partitions of the partition'sgetAccumulatedTimeMillis(). This value is undefined if the timer isStatisticState.UNAVAILABLE.- Returns:
- the accumulated time in milliseconds.
-
snapshot
AccumulatedTimerSupplier snapshot()
Creates a snapshot of this timer. If the timer is in theStatisticState.ACTIVE- Specified by:
snapshotin interfaceStatisticSupplier- Returns:
- a snapshot of this statistic.
-
-