|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.routing.StatisticsRecorder
A class used to gather statistics for an alpha test and send the statistics periodically to a server for further analysis. To add a statistic for sending to the server, just use the static method addToAverage, passing in the statistic and value.
Constructor Summary | |
StatisticsRecorder()
|
Method Summary | |
static void |
addToAverage(java.lang.String name,
int value,
java.lang.String metricUnit)
Adds the value to the statistic (specified by name). |
static void |
addToPercentage(java.lang.String name,
int totalValue,
int percentValue)
Adds the values to the percent statistic (specified by name). |
static void |
addToTotal(java.lang.String name,
int value,
java.lang.String metricUnit)
Adds the value to the statistic (specified by name). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatisticsRecorder()
Method Detail |
public static void addToAverage(java.lang.String name, int value, java.lang.String metricUnit)
name
- the name of the statistic.public static void addToTotal(java.lang.String name, int value, java.lang.String metricUnit)
name
- the name of the statistic.public static void addToPercentage(java.lang.String name, int totalValue, int percentValue)
totalValue
- the denominator (total) of the percentage.percentValue
- the numerator (part or subtotal) of the percentage.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |