|
||||||||||
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.AbstractKilobytesStatistic
Specialized class for Gnutella message statistics. This class modifies data accessors to return data in kilobits instead of bytes. To preserve data accuracy, data is stored in bytes and converted to kilobits. If we did not do this, data would be lost.
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 | |
AbstractKilobytesStatistic()
|
Method Summary | |
double |
getAverage()
Overridden to report the average for this statistic in kilobyes. |
double |
getMax()
Overridden to report the maximum for this statistic in kilobyes. |
double |
getTotal()
Overridden to report the total for this statistic in kilobytes. |
Methods inherited from class com.limegroup.gnutella.statistics.AbstractStatistic |
addData, clearData, getStatHistory, incrementStat, initializeBuffer, setWriteStatToFile, storeCurrentStat |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractKilobytesStatistic()
Method Detail |
public double getAverage()
getAverage
in interface Statistic
getAverage
in class AbstractStatistic
public double getMax()
getMax
in interface Statistic
getMax
in class AbstractStatistic
public double getTotal()
getTotal
in interface Statistic
getTotal
in class AbstractStatistic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |