-
- All Superinterfaces:
StatisticSupplier
- All Known Implementing Classes:
GaugeSnapshot
public interface GaugeSupplier extends StatisticSupplier
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 theirGaugeDefinition
. 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCurrentValue()
Returns the current value of the gauge or an unspecified value if the gauge is unavailable.long
getMaxAllowedValue()
Returns the maximum allowed value for the gauge ofLong.MAX_VALUE
if there is no maximumlong
getMinAllowedValue()
Returns the minimum allowed value for the gauge orLong.MIN_VALUE
if there is no minimum.GaugeSupplier
snapshot()
Returns a snapshot of this statistic.-
Methods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier
getState
-
-
-
-
Method Detail
-
snapshot
GaugeSupplier snapshot()
Description copied from interface:StatisticSupplier
Returns a snapshot of this statistic.- Specified by:
snapshot
in 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_VALUE
if 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_VALUE
if there is no maximum- Returns:
- the maximum allowed value for the gauge
-
-