-
- 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 longgetCurrentValue()Returns the current value of the gauge or an unspecified value if the gauge is unavailable.longgetMaxAllowedValue()Returns the maximum allowed value for the gauge ofLong.MAX_VALUEif there is no maximumlonggetMinAllowedValue()Returns the minimum allowed value for the gauge orLong.MIN_VALUEif there is no minimum.GaugeSuppliersnapshot()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: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
-
-