Package com.codahale.metrics.jmx
Class JmxReporter
java.lang.Object
com.codahale.metrics.jmx.JmxReporter
- All Implemented Interfaces:
com.codahale.metrics.Reporter,Closeable,AutoCloseable
A reporter which listens for new metrics and exposes them as namespaced MBeans.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder forJmxReporterinstances.static interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Stops the reporter.static JmxReporter.BuilderforRegistry(com.codahale.metrics.MetricRegistry registry) Returns a newJmxReporter.BuilderforJmxReporter.voidstart()Starts the reporter.voidstop()Stops the reporter.
-
Method Details
-
forRegistry
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
-