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 Metered
metric
private double
rateFactor
private java.lang.String
rateUnit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
calculateRateUnit(java.util.concurrent.TimeUnit unit)
long
getCount()
double
getFifteenMinuteRate()
double
getFiveMinuteRate()
double
getMeanRate()
double
getOneMinuteRate()
java.lang.String
getRateUnit()
-
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:
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
public java.lang.String getRateUnit()
- Specified by:
getRateUnit
in interfaceJmxReporter.JmxMeterMBean
-
calculateRateUnit
private java.lang.String calculateRateUnit(java.util.concurrent.TimeUnit unit)
-
-