public class FrequencyStat extends Object
Constructor | Description |
---|---|
FrequencyStat(String name,
String description,
String group,
long[] periods) |
Modifier and Type | Method | 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() |
|
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
|
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 void store(OutputStream out, String prefix) throws IOException
out
- to write toprefix
- to prepend to the statIOException
- if something goes wrong