Package org.apache.storm.metric.internal
Class MultiCountStat<T>
java.lang.Object
org.apache.storm.metric.internal.MultiCountStat<T>
Acts as a MultiCount Stat, but keeps track of approximate counts for the last 10 mins, 3 hours, 1 day, and all time. for the same keys
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
TEN_MIN_IN_SECONDSpublic static final int TEN_MIN_IN_SECONDS- See Also:
 
- 
TEN_MIN_IN_SECONDS_STR- See Also:
 
 
- 
- 
Constructor Details- 
MultiCountStatpublic MultiCountStat(int numBuckets) Constructor.- Parameters:
- numBuckets- the number of buckets to divide the time periods into.
 
 
- 
- 
Method Details- 
incByIncrease the count by the given value.- Parameters:
- count- number to count
 
- 
keyToString
- 
getTimeCounts
- 
closepublic void close()
 
-