public class MonitorLoader
extends java.lang.Object
Constructor and Description |
---|
MonitorLoader() |
Modifier and Type | Method and Description |
---|---|
static Monitor |
instantiateMonitor(MonitorConfig monitorConfig,
org.apache.samza.metrics.MetricsRegistry metricsRegistry) |
public static Monitor instantiateMonitor(MonitorConfig monitorConfig, org.apache.samza.metrics.MetricsRegistry metricsRegistry) throws java.lang.InstantiationException
monitorConfig
- contains the configuration defined for a particular monitor.metricsRegistry
- instance that will be used to register custom metrics.java.lang.InstantiationException
- when there is a exception instantiating the monitor.