public class SamzaMonitorService
extends java.lang.Object
Constructor and Description |
---|
SamzaMonitorService(SamzaRestConfig config,
org.apache.samza.metrics.MetricsRegistry metricsRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
createSchedulerAndScheduleMonitor(java.lang.String monitorName,
MonitorConfig monitorConfig,
long schedulingIntervalInMs)
Creates a ScheduledThreadPoolExecutor with core pool size 1 and schedules the monitor to run every schedulingIntervalInMs
|
void |
start() |
void |
stop() |
public SamzaMonitorService(SamzaRestConfig config, org.apache.samza.metrics.MetricsRegistry metricsRegistry)
public void start()
public void stop()
public void createSchedulerAndScheduleMonitor(java.lang.String monitorName, MonitorConfig monitorConfig, long schedulingIntervalInMs) throws java.lang.InstantiationException
java.lang.InstantiationException