com.netflix.servo.monitor
Class NumberGauge

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

public class NumberGauge
extends java.lang.Object
implements Gauge<java.lang.Number>


Constructor Summary
NumberGauge(MonitorConfig config, java.lang.Number number)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          
 MonitorConfig getConfig()
          Configuration used to identify a monitor and provide metadata used in aggregations.
 java.lang.Number getValue()
          Returns the current value for the monitor.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberGauge

public NumberGauge(MonitorConfig config,
                   java.lang.Number number)
Method Detail

getValue

public java.lang.Number getValue()
Description copied from interface: Monitor
Returns the current value for the monitor.

Specified by:
getValue in interface Monitor<java.lang.Number>

getConfig

public MonitorConfig getConfig()
Description copied from interface: Monitor
Configuration used to identify a monitor and provide metadata used in aggregations.

Specified by:
getConfig in interface Monitor<java.lang.Number>

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object