public class ResponseTimeStatsImpl extends AbstractStats implements ResponseTimeStats
count, EMPTY_STATS| Modifier | Constructor and Description |
|---|---|
protected |
ResponseTimeStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Every stats base should be cloneable.
|
float |
getMaxCallTime() |
float |
getMinCallTime() |
double |
getSumOfSquares() |
float |
getTotal()
Returns the sum of the data points recorded.
|
float |
getTotalExclusiveTime() |
boolean |
hasData() |
void |
merge(StatsBase statsObj)
Merge the given stats into this object.
|
void |
recordResponseTime(int count,
long totalTime,
long minTime,
long maxTime,
java.util.concurrent.TimeUnit unit) |
void |
recordResponseTime(long responseTime,
long exclusiveTime,
java.util.concurrent.TimeUnit timeUnit) |
void |
recordResponseTime(long responseTime,
java.util.concurrent.TimeUnit timeUnit) |
void |
recordResponseTimeInNanos(long responseTime) |
void |
recordResponseTimeInNanos(long responseTime,
long exclusiveTime) |
void |
reset() |
java.lang.String |
toString() |
getCallCount, incrementCallCount, incrementCallCount, setCallCount, writeJSONStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCallCount, incrementCallCount, incrementCallCount, setCallCountpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
StatsBaseclone in interface StatsBaseclone in class AbstractStatsjava.lang.CloneNotSupportedException - Thrown if the object can not be cloned. All StatsBase should be clonable.public void recordResponseTime(long responseTime,
java.util.concurrent.TimeUnit timeUnit)
recordResponseTime in interface ResponseTimeStatspublic void recordResponseTime(long responseTime,
long exclusiveTime,
java.util.concurrent.TimeUnit timeUnit)
recordResponseTime in interface ResponseTimeStatspublic void recordResponseTimeInNanos(long responseTime)
recordResponseTimeInNanos in interface ResponseTimeStatspublic void recordResponseTimeInNanos(long responseTime,
long exclusiveTime)
recordResponseTimeInNanos in interface ResponseTimeStatspublic float getTotal()
CountStatsgetTotal in interface CountStatspublic float getTotalExclusiveTime()
getTotalExclusiveTime in interface CountStatspublic float getMaxCallTime()
getMaxCallTime in interface CountStatspublic float getMinCallTime()
getMinCallTime in interface CountStatspublic double getSumOfSquares()
getSumOfSquares in interface CountStatspublic final void merge(StatsBase statsObj)
StatsBasepublic void recordResponseTime(int count,
long totalTime,
long minTime,
long maxTime,
java.util.concurrent.TimeUnit unit)
recordResponseTime in interface ResponseTimeStatspublic java.lang.String toString()
toString in class java.lang.Object