Package org.apache.flink.metrics.jmx
Class JMXReporter
- java.lang.Object
-
- org.apache.flink.metrics.jmx.JMXReporter
-
- All Implemented Interfaces:
org.apache.flink.metrics.reporter.MetricReporter
public class JMXReporter extends Object implements org.apache.flink.metrics.reporter.MetricReporter
MetricReporterthat exportsMetricsvia 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJMXReporter.JmxCounterMBeanThe MBean interface for an exposed counter.static interfaceJMXReporter.JmxGaugeMBeanThe MBean interface for an exposed gauge.static interfaceJMXReporter.JmxHistogramMBeanThe MBean interface for an exposed histogram.static interfaceJMXReporter.JmxMeterMBeanThe MBean interface for an exposed meter.static interfaceJMXReporter.MetricMBeanThe common MBean interface for all metrics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Optional<Integer>getPort()voidnotifyOfAddedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group)voidnotifyOfRemovedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group)voidopen(org.apache.flink.metrics.MetricConfig config)
-
-
-
Method Detail
-
open
public void open(org.apache.flink.metrics.MetricConfig config)
- Specified by:
openin interfaceorg.apache.flink.metrics.reporter.MetricReporter
-
close
public void close()
- Specified by:
closein interfaceorg.apache.flink.metrics.reporter.MetricReporter
-
notifyOfAddedMetric
public void notifyOfAddedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group)- Specified by:
notifyOfAddedMetricin interfaceorg.apache.flink.metrics.reporter.MetricReporter
-
notifyOfRemovedMetric
public void notifyOfRemovedMetric(org.apache.flink.metrics.Metric metric, String metricName, org.apache.flink.metrics.MetricGroup group)- Specified by:
notifyOfRemovedMetricin interfaceorg.apache.flink.metrics.reporter.MetricReporter
-
-