|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for generalized access to a Statistic.
Field Summary | |
static int |
HISTORY_LENGTH
Constant for the number of records to hold for each statistic. |
Method Summary | |
void |
addData(int data)
Add the specified number to the current recording for this statistic. |
void |
clearData()
Clears the current data stored in this statistic. |
double |
getAverage()
Accessor for the average number of this statistic type received per recording time period. |
double |
getMax()
Accessor for the maximum recorded stat value over all recorded time periods. |
IntBuffer |
getStatHistory()
Accessor for the Integer array of all statistics recorded over a discrete interval. |
double |
getTotal()
Accessor for the total number of this statistic recorded. |
void |
incrementStat()
Increments this statistic by one. |
void |
setWriteStatToFile(boolean write)
Sets whether or not to write this Statistic out to a file. |
void |
storeCurrentStat()
Stores the current set of gathered statistics into the history set, setting the currently recorded data back to zero. |
Field Detail |
public static final int HISTORY_LENGTH
Method Detail |
public double getTotal()
public double getAverage()
public double getMax()
public void incrementStat()
public void addData(int data)
data
- the number to increment the current statisticpublic IntBuffer getStatHistory()
public void clearData()
public void storeCurrentStat()
public void setWriteStatToFile(boolean write)
write
- whether or not to write the data to a file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |