public class JMXReporter extends Object implements MetricReporter
MetricReporter that exports Metrics via JMX.
Largely based on the JmxReporter class of the dropwizard metrics library
https://github.com/dropwizard/metrics/blob/master/metrics-core/src/main/java/io/dropwizard/metrics/JmxReporter.java| Modifier and Type | Class and Description |
|---|---|
static interface |
JMXReporter.JmxCounterMBean |
static interface |
JMXReporter.JmxGaugeMBean |
static interface |
JMXReporter.JmxHistogramMBean |
static interface |
JMXReporter.JmxMeterMBean |
static interface |
JMXReporter.MetricMBean |
| Constructor and Description |
|---|
JMXReporter()
Creates a new JMXReporter
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPort() |
void |
notifyOfAddedMetric(Metric metric,
String metricName,
MetricGroup group) |
void |
notifyOfRemovedMetric(Metric metric,
String metricName,
MetricGroup group) |
void |
open(MetricConfig config) |
public static final String ARG_PORT
public void open(MetricConfig config)
open in interface MetricReporterpublic void close()
close in interface MetricReporterpublic int getPort()
public void notifyOfAddedMetric(Metric metric, String metricName, MetricGroup group)
notifyOfAddedMetric in interface MetricReporterpublic void notifyOfRemovedMetric(Metric metric, String metricName, MetricGroup group)
notifyOfRemovedMetric in interface MetricReporterCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.