public class JMXReporter extends Object implements org.apache.flink.metrics.reporter.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.MetricMBean |
| Constructor and Description |
|---|
JMXReporter()
Creates a new JMXReporter
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPort() |
void |
notifyOfAddedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group) |
void |
notifyOfRemovedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group) |
void |
open(org.apache.flink.metrics.MetricConfig config) |
public static final String ARG_PORT
public void open(org.apache.flink.metrics.MetricConfig config)
open in interface org.apache.flink.metrics.reporter.MetricReporterpublic void close()
close in interface org.apache.flink.metrics.reporter.MetricReporterpublic int getPort()
public void notifyOfAddedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
notifyOfAddedMetric in interface org.apache.flink.metrics.reporter.MetricReporterpublic void notifyOfRemovedMetric(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
notifyOfRemovedMetric in interface org.apache.flink.metrics.reporter.MetricReporterCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.