public interface MonitorFactory
Monitor using provided config.| Modifier and Type | Method and Description |
|---|---|
Monitor |
getMonitorInstance(MonitorConfig config,
org.apache.samza.metrics.MetricsRegistry metricsRegistry) |
Monitor getMonitorInstance(MonitorConfig config, org.apache.samza.metrics.MetricsRegistry metricsRegistry) throws java.lang.Exception
config - contains the configuration defined for the monitor.metricsRegistry - instance that will allow the monitor
implementations to register custom metricsjava.lang.Exception - if there was any problem with instantiating the monitor.