public abstract class AbstractJobScheduler extends JobScheduler
JobScheduler
.JobScheduler.ErrorHandler
BEST_EFFORT, STRICT
Constructor and Description |
---|
AbstractJobScheduler() |
Modifier and Type | Method and Description |
---|---|
void |
execute(PhaseMonitor monitor,
ExecutionContext context,
List<? extends Job> jobs,
JobScheduler.ErrorHandler errorHandler)
Executes a series of jobs.
|
protected abstract JobExecutor |
getJobExecutor()
Returns a
JobExecutor for this scheduler. |
configure, doConfigure
protected abstract JobExecutor getJobExecutor()
JobExecutor
for this scheduler.JobExecutor
public final void execute(PhaseMonitor monitor, ExecutionContext context, List<? extends Job> jobs, JobScheduler.ErrorHandler errorHandler) throws InterruptedException, IOException
JobScheduler
execute
in class JobScheduler
monitor
- the progress monitor of the executioncontext
- current execution contextjobs
- jobs to be executederrorHandler
- handles errors during each job executionInterruptedException
- if the execution was interruptedIOException
- if failed to execute the jobsCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.