- All Superinterfaces:
StatisticSupplier
- All Known Implementing Classes:
GaugeSnapshot
Abstract statistic that represents a measure of some runtime activity whose
value may fluctuate over time. Examples include memory usage, current thread
count, etc. Gauges may optionally aggregate in a way specified by their
GaugeDefinition. In addition, gauges have a range of allowed values.
The range of allowed values may change over time (i.e. max memory) and is
thus part of the supplier as opposed to the definition.-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current value of the gauge or an unspecified value if the gauge is unavailable.longReturns the maximum allowed value for the gauge ofLong.MAX_VALUEif there is no maximumlongReturns the minimum allowed value for the gauge orLong.MIN_VALUEif there is no minimum.snapshot()Returns a snapshot of this statistic.Methods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier
getState
-
Method Details
-
snapshot
GaugeSupplier snapshot()Description copied from interface:StatisticSupplierReturns a snapshot of this statistic.- Specified by:
snapshotin interfaceStatisticSupplier- Returns:
- a snapshot of this statistic.
-
getCurrentValue
long getCurrentValue()Returns the current value of the gauge or an unspecified value if the gauge is unavailable.- Returns:
- the current value of the gauge
-
getMinAllowedValue
long getMinAllowedValue()Returns the minimum allowed value for the gauge orLong.MIN_VALUEif there is no minimum.- Returns:
- the minimum allowed value for the gauge
-
getMaxAllowedValue
long getMaxAllowedValue()Returns the maximum allowed value for the gauge ofLong.MAX_VALUEif there is no maximum- Returns:
- the maximum allowed value for the gauge
-