Package com.codahale.metrics
Class JmxReporter.JmxMeter
java.lang.Object
com.codahale.metrics.JmxReporter.AbstractBean
com.codahale.metrics.JmxReporter.JmxMeter
- All Implemented Interfaces:
JmxReporter.JmxMeterMBean
,JmxReporter.MetricMBean
- Direct Known Subclasses:
JmxReporter.JmxTimer
- Enclosing class:
JmxReporter
private static class JmxReporter.JmxMeter
extends JmxReporter.AbstractBean
implements JmxReporter.JmxMeterMBean
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
JmxMeter
(Metered metric, ObjectName objectName, TimeUnit rateUnit) -
Method Summary
Modifier and TypeMethodDescriptionprivate String
calculateRateUnit
(TimeUnit unit) long
getCount()
double
double
double
double
Methods inherited from class com.codahale.metrics.JmxReporter.AbstractBean
objectName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.codahale.metrics.JmxReporter.MetricMBean
objectName
-
Field Details
-
metric
-
rateFactor
private final double rateFactor -
rateUnit
-
-
Constructor Details
-
JmxMeter
-
-
Method Details
-
getCount
public long getCount()- Specified by:
getCount
in interfaceJmxReporter.JmxMeterMBean
-
getMeanRate
public double getMeanRate()- Specified by:
getMeanRate
in interfaceJmxReporter.JmxMeterMBean
-
getOneMinuteRate
public double getOneMinuteRate()- Specified by:
getOneMinuteRate
in interfaceJmxReporter.JmxMeterMBean
-
getFiveMinuteRate
public double getFiveMinuteRate()- Specified by:
getFiveMinuteRate
in interfaceJmxReporter.JmxMeterMBean
-
getFifteenMinuteRate
public double getFifteenMinuteRate()- Specified by:
getFifteenMinuteRate
in interfaceJmxReporter.JmxMeterMBean
-
getRateUnit
- Specified by:
getRateUnit
in interfaceJmxReporter.JmxMeterMBean
-
calculateRateUnit
-