public class StatsImpl extends AbstractStats implements Stats
count, EMPTY_STATS| Modifier | Constructor and Description |
|---|---|
protected |
StatsImpl() |
|
StatsImpl(int count,
float total,
float minValue,
float maxValue,
double sumOfSquares) |
| 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 |
recordDataPoint(float value)
Record a single data point with this stats object, which will automatically increment the data point count and
track min/max/standard deviation as expected.
|
void |
reset() |
java.lang.String |
toString() |
getCallCount, incrementCallCount, incrementCallCount, setCallCount, writeJSONStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCallCount, incrementCallCount, incrementCallCount, setCallCountprotected StatsImpl()
public StatsImpl(int count,
float total,
float minValue,
float maxValue,
double sumOfSquares)
public 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 java.lang.String toString()
toString in class java.lang.Objectpublic void recordDataPoint(float value)
StatsrecordDataPoint in interface Statspublic float getTotal()
CountStatsgetTotal in interface CountStatspublic float getTotalExclusiveTime()
getTotalExclusiveTime in interface CountStatspublic float getMinCallTime()
getMinCallTime in interface CountStatspublic float getMaxCallTime()
getMaxCallTime in interface CountStatspublic double getSumOfSquares()
getSumOfSquares in interface CountStats