Package io.dropwizard.metrics5.jmx
Class JmxReporter
- java.lang.Object
-
- io.dropwizard.metrics5.jmx.JmxReporter
-
- All Implemented Interfaces:
io.dropwizard.metrics5.Reporter,Closeable,AutoCloseable
public class JmxReporter extends Object implements io.dropwizard.metrics5.Reporter, Closeable
A reporter which listens for new metrics and exposes them as namespaced MBeans.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJmxReporter.BuilderA builder forJmxReporterinstances.static interfaceJmxReporter.JmxCounterMBeanstatic interfaceJmxReporter.JmxGaugeMBeanstatic interfaceJmxReporter.JmxHistogramMBeanstatic interfaceJmxReporter.JmxMeterMBeanstatic interfaceJmxReporter.JmxTimerMBeanstatic interfaceJmxReporter.MetricMBean
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stops the reporter.static JmxReporter.BuilderforRegistry(io.dropwizard.metrics5.MetricRegistry registry)Returns a newJmxReporter.BuilderforJmxReporter.voidstart()Starts the reporter.voidstop()Stops the reporter.
-
-
-
Method Detail
-
forRegistry
public static JmxReporter.Builder forRegistry(io.dropwizard.metrics5.MetricRegistry registry)
Returns a newJmxReporter.BuilderforJmxReporter.- Parameters:
registry- the registry to report- Returns:
- a
JmxReporter.Builderinstance for aJmxReporter
-
start
public void start()
Starts the reporter.
-
stop
public void stop()
Stops the reporter.
-
close
public void close()
Stops the reporter.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-