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 class
A builder forJmxReporter
instances.static interface
static interface
static interface
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Stops the reporter.static JmxReporter.Builder
forRegistry
(com.codahale.metrics.MetricRegistry registry) Returns a newJmxReporter.Builder
forJmxReporter
.void
start()
Starts the reporter.void
stop()
Stops the reporter.
-
Method Details
-
forRegistry
Returns a newJmxReporter.Builder
forJmxReporter
.- Parameters:
registry
- the registry to report- Returns:
- a
JmxReporter.Builder
instance 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-