@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface Meter extends Metric
Modifier and Type  Method and Description 

long 
getCount()
Returns the number of events.

double 
getFifteenMinuteRate()
Returns the fifteenminute exponentiallyweighted moving average rate at which events have
occurred since the meter was created.

double 
getFiveMinuteRate()
Returns the fiveminute exponentiallyweighted moving average rate at which events have
occurred since the meter was created.

double 
getMeanRate()
Returns the mean rate at which events have occurred since the meter was created.

double 
getOneMinuteRate()
Returns the oneminute exponentiallyweighted moving average rate at which events have
occurred since the meter was created.

void 
mark()
Records one occurrence.

void 
mark(long events)
Records
events occurrences. 
void mark()
void mark(long events)
events
occurrences.events
 Number of occurrences to record.long getCount()
double getMeanRate()
double getOneMinuteRate()
This rate has the same exponential decay factor as the oneminute load average in the top
Unix command.
double getFiveMinuteRate()
This rate has the same exponential decay factor as the fiveminute load average in the top
Unix command.
double getFifteenMinuteRate()
This rate has the same exponential decay factor as the fifteenminute load average in the
top
Unix command.
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.