Package com.codahale.metrics
Class JmxReporter.JmxTimer
- java.lang.Object
-
- com.codahale.metrics.JmxReporter.AbstractBean
-
- com.codahale.metrics.JmxReporter.JmxMeter
-
- com.codahale.metrics.JmxReporter.JmxTimer
-
- All Implemented Interfaces:
JmxReporter.JmxMeterMBean
,JmxReporter.JmxTimerMBean
,JmxReporter.MetricMBean
- Enclosing class:
- JmxReporter
static class JmxReporter.JmxTimer extends JmxReporter.JmxMeter implements JmxReporter.JmxTimerMBean
-
-
Field Summary
Fields Modifier and Type Field Description private double
durationFactor
private java.lang.String
durationUnit
private Timer
metric
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get50thPercentile()
double
get75thPercentile()
double
get95thPercentile()
double
get98thPercentile()
double
get999thPercentile()
double
get99thPercentile()
java.lang.String
getDurationUnit()
double
getMax()
double
getMean()
double
getMin()
double
getStdDev()
long[]
values()
-
Methods inherited from class com.codahale.metrics.JmxReporter.JmxMeter
getCount, getFifteenMinuteRate, getFiveMinuteRate, getMeanRate, getOneMinuteRate, 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.JmxMeterMBean
getCount, getFifteenMinuteRate, getFiveMinuteRate, getMeanRate, getOneMinuteRate, getRateUnit
-
Methods inherited from interface com.codahale.metrics.JmxReporter.MetricMBean
objectName
-
-
-
-
Field Detail
-
metric
private final Timer metric
-
durationFactor
private final double durationFactor
-
durationUnit
private final java.lang.String durationUnit
-
-
Constructor Detail
-
JmxTimer
private JmxTimer(Timer metric, javax.management.ObjectName objectName, java.util.concurrent.TimeUnit rateUnit, java.util.concurrent.TimeUnit durationUnit)
-
-
Method Detail
-
get50thPercentile
public double get50thPercentile()
- Specified by:
get50thPercentile
in interfaceJmxReporter.JmxTimerMBean
-
getMin
public double getMin()
- Specified by:
getMin
in interfaceJmxReporter.JmxTimerMBean
-
getMax
public double getMax()
- Specified by:
getMax
in interfaceJmxReporter.JmxTimerMBean
-
getMean
public double getMean()
- Specified by:
getMean
in interfaceJmxReporter.JmxTimerMBean
-
getStdDev
public double getStdDev()
- Specified by:
getStdDev
in interfaceJmxReporter.JmxTimerMBean
-
get75thPercentile
public double get75thPercentile()
- Specified by:
get75thPercentile
in interfaceJmxReporter.JmxTimerMBean
-
get95thPercentile
public double get95thPercentile()
- Specified by:
get95thPercentile
in interfaceJmxReporter.JmxTimerMBean
-
get98thPercentile
public double get98thPercentile()
- Specified by:
get98thPercentile
in interfaceJmxReporter.JmxTimerMBean
-
get99thPercentile
public double get99thPercentile()
- Specified by:
get99thPercentile
in interfaceJmxReporter.JmxTimerMBean
-
get999thPercentile
public double get999thPercentile()
- Specified by:
get999thPercentile
in interfaceJmxReporter.JmxTimerMBean
-
values
public long[] values()
- Specified by:
values
in interfaceJmxReporter.JmxTimerMBean
-
getDurationUnit
public java.lang.String getDurationUnit()
- Specified by:
getDurationUnit
in interfaceJmxReporter.JmxTimerMBean
-
-