com.netflix.servo.monitor
Class DoubleGauge

java.lang.Object
  extended by com.netflix.servo.monitor.NumberGauge
      extended by com.netflix.servo.monitor.DoubleGauge
All Implemented Interfaces:
Gauge<java.lang.Number>, Monitor<java.lang.Number>, NumericMonitor<java.lang.Number>

public class DoubleGauge
extends NumberGauge

A Gauge that reports a double value.


Constructor Summary
DoubleGauge(MonitorConfig config)
          Create a new instance with the specified configuration.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 com.google.common.util.concurrent.AtomicDouble getNumber()
          Returns a reference to the AtomicDouble.
 int hashCode()
          
 void set(java.lang.Double n)
          Set the current value.
 
Methods inherited from class com.netflix.servo.monitor.NumberGauge
getConfig, getValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleGauge

public DoubleGauge(MonitorConfig config)
Create a new instance with the specified configuration.

Parameters:
config - configuration for this gauge
Method Detail

set

public void set(java.lang.Double n)
Set the current value.


getNumber

public com.google.common.util.concurrent.AtomicDouble getNumber()
Returns a reference to the AtomicDouble.


equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class NumberGauge

hashCode

public int hashCode()

Overrides:
hashCode in class NumberGauge