Package org.apache.hadoop.hbase.metrics
Interface Meter
- All Superinterfaces:
Metric
- All Known Implementing Classes:
DropwizardMeter
A metric which measure the rate at which some operation is invoked.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()Returns the number of events.doubleReturns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.doubleReturns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.doubleReturns the mean rate at which events have occurred since the meter was created.doubleReturns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.voidmark()Records one occurrence.voidmark(long events) Recordseventsoccurrences.
-
Method Details
-
mark
void mark()Records one occurrence. -
mark
Recordseventsoccurrences.- Parameters:
events- Number of occurrences to record.
-
getCount
long getCount()Returns the number of events.- Returns:
- the number of events.
-
getMeanRate
double getMeanRate()Returns the mean rate at which events have occurred since the meter was created.- Returns:
- the mean rate at which events have occurred since the meter was created
-
getOneMinuteRate
double getOneMinuteRate()Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the one-minute load average in thetopUnix command.- Returns:
- the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getFiveMinuteRate
double getFiveMinuteRate()Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the five-minute load average in thetopUnix command.- Returns:
- the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
getFifteenMinuteRate
double getFifteenMinuteRate()Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the fifteen-minute load average in thetopUnix command.- Returns:
- the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-