public interface GaugeSupplier extends StatisticSupplier
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.Modifier and Type | Method and 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 of
Long.MAX_VALUE if there is no maximum |
long |
getMinAllowedValue()
Returns the minimum allowed value for the gauge or
Long.MIN_VALUE if there is no minimum. |
GaugeSupplier |
snapshot()
Returns a snapshot of this statistic.
|
getState
GaugeSupplier snapshot()
StatisticSupplier
snapshot
in interface StatisticSupplier
long getCurrentValue()
long getMinAllowedValue()
Long.MIN_VALUE
if there is no minimum.long getMaxAllowedValue()
Long.MAX_VALUE
if there is no maximumCopyright © 2019 Actian Corporation. All rights reserved.