public class DoubleGauge extends NumberGauge
Gauge that reports a double value.config| Constructor and Description |
|---|
DoubleGauge(MonitorConfig config)
Create a new instance with the specified configuration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
com.google.common.util.concurrent.AtomicDouble |
getNumber()
Returns a reference to the
AtomicDouble. |
java.lang.Number |
getValue(int pollerIdx)
Returns the current value for the monitor for the nth poller.
|
int |
hashCode() |
void |
set(java.lang.Double n)
Set the current value.
|
getBackingNumber, toStringgetConfig, getValuepublic DoubleGauge(MonitorConfig config)
config - configuration for this gaugepublic void set(java.lang.Double n)
public com.google.common.util.concurrent.AtomicDouble getNumber()
AtomicDouble.public boolean equals(java.lang.Object o)
equals in class NumberGaugepublic int hashCode()
hashCode in class NumberGaugepublic java.lang.Number getValue(int pollerIdx)
getValue in interface Monitor<java.lang.Number>getValue in class NumberGauge