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 Modifier and Type Field Description private Meteredmetricprivate doublerateFactorprivate java.lang.StringrateUnit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringcalculateRateUnit(java.util.concurrent.TimeUnit unit)longgetCount()doublegetFifteenMinuteRate()doublegetFiveMinuteRate()doublegetMeanRate()doublegetOneMinuteRate()java.lang.StringgetRateUnit()-
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 Detail
-
metric
private final Metered metric
-
rateFactor
private final double rateFactor
-
rateUnit
private final java.lang.String rateUnit
-
-
Constructor Detail
-
JmxMeter
private JmxMeter(Metered metric, javax.management.ObjectName objectName, java.util.concurrent.TimeUnit rateUnit)
-
-
Method Detail
-
getCount
public long getCount()
- Specified by:
getCountin interfaceJmxReporter.JmxMeterMBean
-
getMeanRate
public double getMeanRate()
- Specified by:
getMeanRatein interfaceJmxReporter.JmxMeterMBean
-
getOneMinuteRate
public double getOneMinuteRate()
- Specified by:
getOneMinuteRatein interfaceJmxReporter.JmxMeterMBean
-
getFiveMinuteRate
public double getFiveMinuteRate()
- Specified by:
getFiveMinuteRatein interfaceJmxReporter.JmxMeterMBean
-
getFifteenMinuteRate
public double getFifteenMinuteRate()
- Specified by:
getFifteenMinuteRatein interfaceJmxReporter.JmxMeterMBean
-
getRateUnit
public java.lang.String getRateUnit()
- Specified by:
getRateUnitin interfaceJmxReporter.JmxMeterMBean
-
calculateRateUnit
private java.lang.String calculateRateUnit(java.util.concurrent.TimeUnit unit)
-
-