public class MaxGauge extends AbstractMonitor<java.lang.Long> implements Gauge<java.lang.Long>
config| Constructor and Description |
|---|
MaxGauge(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 max value since the last reset.
|
java.lang.Long |
getValue(int nth)
Returns the current value for the monitor for the nth poller.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
update(long v)
Update the max if the provided value is larger than the current max.
|
getConfig, getValuepublic MaxGauge(MonitorConfig config)
public void update(long v)
public java.lang.Long getValue(int nth)
public long getCurrentValue(int nth)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object