public class CompositeBackgroundJob extends Object implements BackgroundJob<List<?>>
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeBackgroundJob.SubJobMonitor |
| Constructor and Description |
|---|
CompositeBackgroundJob(String description,
BackgroundJob<?>... steps) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Describe the job.
|
List<?> |
work(BackgroundJobMonitor monitor)
Execute the Job.
|
public CompositeBackgroundJob(String description, BackgroundJob<?>... steps)
public List<?> work(BackgroundJobMonitor monitor) throws Exception
BackgroundJobBackgroundJobMonitor to communicate with the scheduler:
BackgroundJobMonitor
through the BackgroundJobMonitor.announceTotal(int),
BackgroundJobMonitor.reportProgressAbsolute(int) and
BackgroundJobMonitor.reportProgressIncrement(int) methods.BackgroundJobMonitor.log(org.evolvis.tartools.backgroundjobs.BackgroundJobMonitor.Severity, Object)
Method.BackgroundJobMonitor.isAborting() property, to check whether a
cancellation was requested. If this is the case, this method should
return as quickly as possible.BackgroundJobMonitor.getScheduledJobId() Method.work in interface BackgroundJob<List<?>>monitor - The job monitor that should be used to communicate with the
scheduler.Exception - The scheduler should be prepared to deal with any kind of
exception by marking the job as failed.public String getDescription()
BackgroundJobgetDescription in interface BackgroundJob<List<?>>Copyright © 2018. All Rights Reserved.