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.UNAVAILABLE
if all partitions are unavailable. Otherwise the aggregatedStatisticSupplier.getState()
isStatisticState.FINISHED
if 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 long
getAccumulatedTimeMillis()
The accumulated time so far.AccumulatedTimerSupplier
snapshot()
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:
snapshot
in interfaceStatisticSupplier
- Returns:
- a snapshot of this statistic.
-
-