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:
jrandom
2006-03-16 21:52:09 +00:00
committed by zzz
parent 65dc803fb7
commit fc927efaa3

View 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);
}