|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.utilint.LatencyStat
public class LatencyStat
A stat that keeps track of latency in milliseconds and presents average, min, max, 95th and 99th percentile values.
Constructor Summary | |
---|---|
LatencyStat(long maxTrackedLatencyMillis)
|
Method Summary | |
---|---|
Latency |
calculate()
Generated the min, max, avg, 95th and 99th percentile for the collected measurements. |
Latency |
calculateAndClear()
Generated the min, max, avg, 95th and 99th percentile for the collected measurements, then clear the measurement collection. |
void |
clear()
|
boolean |
isEmpty()
|
void |
rollup(LatencyStat other)
Add the measurement in "other" to the measurements held here, in order to generate min, max, avg, 95th, 99th percentile for two Latency Stats. |
void |
set(int numRecordedOps,
long nanoLatency)
Record a set of operations that took "nanolatency" long. |
void |
set(long nanoLatency)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LatencyStat(long maxTrackedLatencyMillis)
Method Detail |
---|
public void clear()
public Latency calculate()
public Latency calculateAndClear()
public void set(long nanoLatency)
public void set(int numRecordedOps, long nanoLatency)
public void rollup(LatencyStat other)
public boolean isEmpty()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |