Package com.codahale.metrics
Class JmxReporter.JmxCounter
- java.lang.Object
-
- com.codahale.metrics.JmxReporter.AbstractBean
-
- com.codahale.metrics.JmxReporter.JmxCounter
-
- All Implemented Interfaces:
JmxReporter.JmxCounterMBean
,JmxReporter.MetricMBean
- Enclosing class:
- JmxReporter
private static class JmxReporter.JmxCounter extends JmxReporter.AbstractBean implements JmxReporter.JmxCounterMBean
-
-
Constructor Summary
Constructors Modifier Constructor Description private
JmxCounter(Counter metric, javax.management.ObjectName objectName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
-
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 Counter metric
-
-
Constructor Detail
-
JmxCounter
private JmxCounter(Counter metric, javax.management.ObjectName objectName)
-
-
Method Detail
-
getCount
public long getCount()
- Specified by:
getCount
in interfaceJmxReporter.JmxCounterMBean
-
-