forked from I2P_Developers/i2p.i2p
2006-03-16 jrandom
* Integrate basic hooks for jrobin (http://jrobin.org) into the router console. Selected stats can be harvested automatically and fed into in-memory RRD databases, and those databases can be served up either as PNG images or as RRDtool compatible XML dumps (see oldstats.jsp for details). A base set of stats are harvested by default, but an alternate list can be specified by setting the 'stat.summaries' list on the advanced config. For instance: stat.summaries=bw.recvRate.60000,bw.sendRate.60000 * HTML tweaking for the general config page (thanks void!) * Odd NPE fix (thanks Complication!)
This commit is contained in:
14
core/java/src/net/i2p/stat/RateSummaryListener.java
Normal file
14
core/java/src/net/i2p/stat/RateSummaryListener.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package net.i2p.stat;
|
||||
|
||||
/**
|
||||
* Receive the state of the rate when its coallesced
|
||||
*/
|
||||
public interface RateSummaryListener {
|
||||
/**
|
||||
* @param totalValue sum of all event values in the most recent period
|
||||
* @param eventCount how many events occurred
|
||||
* @param totalEventTime how long the events were running for
|
||||
* @param period how long this period is
|
||||
*/
|
||||
void add(double totalValue, long eventCount, double totalEventTime, long period);
|
||||
}
|
Reference in New Issue
Block a user