com.espertech.esper.metrics.codahale_metrics.metrics.core
Interface Metered

All Superinterfaces:
Metric
All Known Implementing Classes:
Meter, Timer

public interface Metered
extends Metric

An object which maintains mean and exponentially-weighted rate.


Method Summary
 long count()
          Returns the number of events which have been marked.
 java.lang.String eventType()
          Returns the type of events the meter is measuring.
 double fifteenMinuteRate()
          Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
 double fiveMinuteRate()
          Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
 double meanRate()
          Returns the mean rate at which events have occurred since the meter was created.
 double oneMinuteRate()
          Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
 java.util.concurrent.TimeUnit rateUnit()
          Returns the meter's rate unit.
 
Methods inherited from interface com.espertech.esper.metrics.codahale_metrics.metrics.core.Metric
processWith
 

Method Detail

rateUnit

java.util.concurrent.TimeUnit rateUnit()
Returns the meter's rate unit.

Returns:
the meter's rate unit

eventType

java.lang.String eventType()
Returns the type of events the meter is measuring.

Returns:
the meter's event type

count

long count()
Returns the number of events which have been marked.

Returns:
the number of events which have been marked

fifteenMinuteRate

double fifteenMinuteRate()
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 the top Unix command.

Returns:
the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created

fiveMinuteRate

double fiveMinuteRate()
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 the top Unix command.

Returns:
the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created

meanRate

double meanRate()
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

oneMinuteRate

double oneMinuteRate()
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 the top Unix command.

Returns:
the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com