public class FrequencyStat extends Object
| Constructor and Description |
|---|
FrequencyStat(String name,
String description,
String group,
long[] periods) |
| Modifier and Type | Method and Description |
|---|---|
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()
Gets the lifetime event count.
|
long |
getFrequency()
Gets the lifetime average frequency.
|
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
|
public void coalesceStats()
public void eventOccurred()
public String getDescription()
public long getEventCount()
public long getFrequency()
public Frequency getFrequency(long period)
public String getGroupName()
public String getName()
public long[] getPeriods()
public void store(OutputStream out, String prefix) throws IOException
out - to write toprefix - to prepend to the statIOException - if something goes wrong