@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 fifteen-minute exponentially-weighted moving average rate at which events have
occurred since the meter was created.
|
double |
getFiveMinuteRate()
Returns the five-minute exponentially-weighted 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 one-minute exponentially-weighted 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()
top
Unix command.double getFiveMinuteRate()
top
Unix command.double getFifteenMinuteRate()
top
Unix command.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.