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 Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
TEN_MIN_IN_SECONDS
public static final int TEN_MIN_IN_SECONDS- See Also:
-
TEN_MIN_IN_SECONDS_STR
- See Also:
-
-
Constructor Details
-
MultiCountStat
public MultiCountStat(int numBuckets) Constructor.- Parameters:
numBuckets
- the number of buckets to divide the time periods into.
-
-
Method Details
-
incBy
Increase the count by the given value.- Parameters:
count
- number to count
-
keyToString
-
getTimeCounts
-
close
public void close()
-