|
|||||||||
| 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.Number>
com.netflix.servo.monitor.PeakRateCounter
public class PeakRateCounter
A resettable counter. The value is the maximum count per second within the specified interval until the counter is reset.
| Field Summary |
|---|
| Fields inherited from class com.netflix.servo.monitor.AbstractMonitor |
|---|
config |
| Constructor Summary | |
|---|---|
PeakRateCounter(MonitorConfig config)
|
|
PeakRateCounter(MonitorConfig config,
int intervalSeconds)
Deprecated. Polling intervals are configured using the system property servo.pollers |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Number |
getAndResetValue()
Return the value and reset the monitor state for the default polling interval. |
java.lang.Number |
getAndResetValue(int pollerIdx)
Return the value and reset the monitor state for a given polling interval. |
java.lang.Number |
getValue()
Returns the current value for the monitor. |
int |
hashCode()
|
void |
increment()
Update the count by one. |
void |
increment(long amount)
Update the count by the specified amount. |
java.lang.String |
toString()
|
| 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 PeakRateCounter(MonitorConfig config)
@Deprecated
public PeakRateCounter(MonitorConfig config,
int intervalSeconds)
config - configuration for the monitorintervalSeconds - ignored| Method Detail |
|---|
public java.lang.Number getValue()
getValue in interface Monitor<java.lang.Number>public java.lang.Number getAndResetValue()
getAndResetValue in interface ResettableMonitor<java.lang.Number>public java.lang.Number getAndResetValue(int pollerIdx)
getAndResetValue in interface ResettableMonitor<java.lang.Number>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.Objectpublic void increment()
increment in interface Counterpublic void increment(long amount)
increment in interface Counter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||