public interface IntervalTimerSupplier extends StatisticSupplier
StatisticSupplier.getState() is StatisticState.UNAVAILABLE if all partitions
are unavailable. Otherwise the aggregated StatisticSupplier.getState() is StatisticState.FINISHED if all partitions are StatisticState.FINISHED.
Otherwise the aggregated StatisticSupplier.getState() is StatisticState.ACTIVEgetStartTimeMillis() is defined to be the minimum across all partitionsgetEndTimeMillis() is defined to be the maximum across all partitionsgetTimeIntervalMillis() is defined to be the difference between the aggregated getEndTimeMillis() and the aggregated getStartTimeMillis()| Modifier and Type | Method and Description |
|---|---|
long |
getEndTimeMillis()
Returns the end time if finished, the current time if running, or an undefined value if never started.
|
long |
getStartTimeMillis()
This will return the start time or an undefined value if never started.
|
long |
getTimeIntervalMillis()
If state is
StatisticState.ACTIVE or StatisticState.FINISHED should always return getEndTimeMillis()-getStartTimeMillis. |
IntervalTimerSupplier |
snapshot()
Creates a snapshot of this timer.
|
getStatelong getStartTimeMillis()
long getEndTimeMillis()
StatisticState.ACTIVE state, then this value will reflect the time at which
the snapshot was taken.long getTimeIntervalMillis()
StatisticState.ACTIVE or StatisticState.FINISHED should always return getEndTimeMillis()-getStartTimeMillis.
Otherwise, value is undefined.IntervalTimerSupplier snapshot()
StatisticState.ACTIVEsnapshot in interface StatisticSupplierCopyright © 2024 Actian Corporation. All rights reserved.