@Singleton
public class JobSchedulerService
extends com.google.common.util.concurrent.AbstractExecutionThreadService
| Constructor and Description |
|---|
JobSchedulerService(JobExecutionEngine.Factory engineFactory,
JobWorkerPool.Factory workerPoolFactory,
JobSchedulerConfig schedulerConfig,
JobSchedulerClock clock,
JobSchedulerEventBus schedulerEventBus,
ServerStatus serverStatus,
com.github.joschi.jadconfig.util.Duration loopSleepDuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleJobCompleted(JobCompletedEvent triggerCompletedEvent) |
protected void |
run() |
protected void |
startUp() |
protected void |
triggerShutdown() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, state, stopAsync, toString@Inject public JobSchedulerService(JobExecutionEngine.Factory engineFactory, JobWorkerPool.Factory workerPoolFactory, JobSchedulerConfig schedulerConfig, JobSchedulerClock clock, JobSchedulerEventBus schedulerEventBus, ServerStatus serverStatus, @Named(value="job_scheduler_loop_sleep_duration") com.github.joschi.jadconfig.util.Duration loopSleepDuration)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionprotected void run()
throws Exception
run in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionpublic void handleJobCompleted(JobCompletedEvent triggerCompletedEvent)
protected void triggerShutdown()
triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadServiceCopyright © 2012–2021 Graylog, Inc.. All rights reserved.