- All Superinterfaces:
StatisticSupplier
- All Known Implementing Classes:
BasicCounter,CounterSnapshot
Abstract statistic that represents a count of some runtime activity. Counters
consist of a state(unavailable, started, stopped) and a count. Counters can
aggregate in a configurable way, specified by their
CounterDefinition.-
Method Summary
Methods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier
getState
-
Method Details
-
snapshot
CounterSupplier snapshot()Description copied from interface:StatisticSupplierReturns a snapshot of this statistic.- Specified by:
snapshotin interfaceStatisticSupplier- Returns:
- a snapshot of this statistic.
-
getCount
long getCount()This will return the value of the counter or an undefined value if never started.- Returns:
- the value of the counter or an undefined value if never started.
-