public class CompositeMetricsReporter extends java.lang.Object implements SystemMetricsReporter<CompositeMetrics>
SystemMetricsReporter.Event
Constructor and Description |
---|
CompositeMetricsReporter() |
Modifier and Type | Method and Description |
---|---|
<T extends SystemMetrics<T>> |
addMetricsReporter(java.lang.Class<T> metricsClass,
SystemMetricsReporter<T> reporter)
Add a metric and its reporter to the CompositeMetricsReporter.
|
void |
reportTo(CompositeMetrics metrics,
SystemMetricsReporter.Event event) |
public void reportTo(CompositeMetrics metrics, SystemMetricsReporter.Event event)
reportTo
in interface SystemMetricsReporter<CompositeMetrics>
public <T extends SystemMetrics<T>> CompositeMetricsReporter addMetricsReporter(java.lang.Class<T> metricsClass, SystemMetricsReporter<T> reporter)
metricsClass
- Class of the metricreporter
- Reporter that reports the metrics class