|
||||||||||
| 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(int durationMS)
|
|
| 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()
|
int |
getDuration()
|
long |
getGetAllAggregatedCount()
Return the aggergated number of keys returned across all getAll calls, taking into account multiple values returned per call. |
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. |
float |
getThroughput()
|
long |
getTotalCount()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestCounter(int durationMS)
durationMS - specifies for how long you want to maintain this
counter (in milliseconds).| Method Detail |
|---|
public long getCount()
public long getTotalCount()
public float getThroughput()
public java.lang.String getDisplayThroughput()
public double getAverageTimeInMs()
public java.lang.String getDisplayAverageTimeInMs()
public int 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||