|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.stat.FrequencyStat
public class FrequencyStat
coordinate an event frequency over various periods
Constructor Summary | |
---|---|
FrequencyStat(String name,
String description,
String group,
long[] periods)
|
Method Summary | |
---|---|
void |
coalesceStats()
coalesce all the stats |
boolean |
equals(Object obj)
|
void |
eventOccurred()
update all of the frequencies for the various periods |
String |
getDescription()
|
long |
getEventCount()
|
long |
getFrequency()
|
Frequency |
getFrequency(long period)
|
String |
getGroupName()
|
String |
getName()
|
long[] |
getPeriods()
|
int |
hashCode()
|
void |
store(OutputStream out,
String prefix)
Serializes this FrequencyStat to the provided OutputStream |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrequencyStat(String name, String description, String group, long[] periods)
Method Detail |
---|
public void eventOccurred()
public void coalesceStats()
public String getName()
public String getGroupName()
public String getDescription()
public long[] getPeriods()
public Frequency getFrequency(long period)
public long getEventCount()
public long getFrequency()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public void store(OutputStream out, String prefix) throws IOException
out
- to write toprefix
- to prepend to the stat
IOException
- if something goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |