public class MinGauge extends AbstractMonitor<java.lang.Long> implements Gauge<java.lang.Long>
getValue(int)
will return 0.config
Constructor and Description |
---|
MinGauge(MonitorConfig config)
Creates a new instance of the gauge.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getCurrentValue(int nth)
Returns the current min value since the last reset.
|
java.lang.Long |
getValue(int pollerIdx)
Returns the current value for the monitor for the nth poller.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
update(long v)
Update the min if the provided value is smaller than the current min.
|
getConfig, getValue
public MinGauge(MonitorConfig config)
public void update(long v)
public java.lang.Long getValue(int pollerIdx)
public long getCurrentValue(int nth)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object