|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.monitor.AbstractMonitor<java.lang.Long>
com.netflix.servo.monitor.MaxGauge
public class MaxGauge
Gauge that keeps track of the maximum value seen since the last reset. Updates should be non-negative, the reset value is 0.
| Field Summary |
|---|
| Fields inherited from class com.netflix.servo.monitor.AbstractMonitor |
|---|
config |
| Constructor Summary | |
|---|---|
MaxGauge(MonitorConfig config)
Creates a new instance of the gauge. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Long |
getAndResetValue()
Return the value and reset the monitor state for the default polling interval. |
java.lang.Long |
getAndResetValue(int idx)
Return the value and reset the monitor state for a given polling interval. |
java.lang.Long |
getValue()
Returns the current value for the monitor. |
int |
hashCode()
|
java.lang.String |
toString()
|
void |
update(long v)
Update the max if the provided value is larger than the current max. |
| Methods inherited from class com.netflix.servo.monitor.AbstractMonitor |
|---|
getConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.netflix.servo.monitor.Monitor |
|---|
getConfig |
| Constructor Detail |
|---|
public MaxGauge(MonitorConfig config)
| Method Detail |
|---|
public void update(long v)
public java.lang.Long getValue()
getValue in interface Monitor<java.lang.Long>public java.lang.Long getAndResetValue()
getAndResetValue in interface ResettableMonitor<java.lang.Long>public java.lang.Long getAndResetValue(int idx)
getAndResetValue in interface ResettableMonitor<java.lang.Long>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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||