|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.statistics.AbstractStatistic
com.limegroup.gnutella.statistics.NumericalStatistic
Specialized statistics class that just records numerical statistics, i.e. statistics that are not time-based.
Field Summary |
Fields inherited from class com.limegroup.gnutella.statistics.AbstractStatistic |
_buffer, _current, _fileName, _max, _total, _totalStatsRecorded, STATS_MANAGER |
Fields inherited from interface com.limegroup.gnutella.statistics.Statistic |
HISTORY_LENGTH |
Constructor Summary | |
protected |
NumericalStatistic()
Adds the statistic to the list of numerical statistics. |
Method Summary | |
void |
addData(int data)
Overridden to actually write the data as a field in our buffer, as opposed to waiting for some time-based event to write. |
Methods inherited from class com.limegroup.gnutella.statistics.AbstractStatistic |
clearData, getAverage, getMax, getStatHistory, getTotal, incrementStat, initializeBuffer, setWriteStatToFile, storeCurrentStat |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected NumericalStatistic()
Method Detail |
public void addData(int data)
addData
in interface Statistic
addData
in class AbstractStatistic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |