|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.stats.RequestCounter
public class RequestCounter
A thread-safe request counter that calculates throughput for a specified duration of time.
| Constructor Summary | |
|---|---|
RequestCounter(long durationMs)
|
|
RequestCounter(long durationMs,
boolean useHistogram)
|
|
| Method Summary | |
|---|---|
void |
addRequest(long timeNS)
|
void |
addRequest(long timeNS,
long numEmptyResponses,
long bytes,
long getAllAggregatedCount)
|
double |
getAverageSizeInBytes()
Return the average size of all the versioned values returned. |
double |
getAverageTimeInMs()
|
long |
getCount()
|
java.lang.String |
getDisplayAverageTimeInMs()
|
java.lang.String |
getDisplayThroughput()
|
long |
getDuration()
|
long |
getGetAllAggregatedCount()
Return the aggregated number of keys returned across all getAll calls, taking into account multiple values returned per call. |
long |
getGetAllMaxCount()
Return the maximum number of keys returned across all getAll calls. |
long |
getMaxLatencyInMs()
|
long |
getMaxSizeInBytes()
Return the size of the largest response or request in bytes returned. |
long |
getNumEmptyResponses()
Return the number of requests that have returned returned no value for the requested key. |
long |
getQ95LatencyMs()
|
long |
getQ99LatencyMs()
|
float |
getThroughput()
|
float |
getThroughputInBytes()
|
long |
getTotalCount()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestCounter(long durationMs)
durationMs - specifies for how long you want to maintain this
counter (in milliseconds).
public RequestCounter(long durationMs,
boolean useHistogram)
durationMs - specifies for how long you want to maintain this
counter (in milliseconds). useHistogram indicates that this
counter should also use a histogram.| Method Detail |
|---|
public long getCount()
public long getTotalCount()
public float getThroughput()
public float getThroughputInBytes()
public java.lang.String getDisplayThroughput()
public double getAverageTimeInMs()
public java.lang.String getDisplayAverageTimeInMs()
public long getDuration()
public long getMaxLatencyInMs()
public void addRequest(long timeNS)
public void addRequest(long timeNS,
long numEmptyResponses,
long bytes,
long getAllAggregatedCount)
numEmptyResponses - For GET and GET_ALL, how many keys were no
values foundbytes - Total number of bytes across all versions of values' bytesgetAllAggregatedCount - Total number of keys returned for getAll
callsDetailed request to track additionald data about
PUT, GET and GET_ALLpublic long getNumEmptyResponses()
public long getMaxSizeInBytes()
public double getAverageSizeInBytes()
public long getGetAllAggregatedCount()
public long getGetAllMaxCount()
public long getQ95LatencyMs()
public long getQ99LatencyMs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||