@Component public class RecordingJobListener extends Object implements org.quartz.JobListener
JobListener to be added to the Scheduler to get triggered when a job has ended. It saves some data
about the job in a database. Such as start- and endtime, runtime and result.| Constructor and Description |
|---|
RecordingJobListener(JobRecordService jobRecordService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
void |
jobExecutionVetoed(org.quartz.JobExecutionContext context) |
void |
jobToBeExecuted(org.quartz.JobExecutionContext context) |
void |
jobWasExecuted(org.quartz.JobExecutionContext context,
org.quartz.JobExecutionException jobException) |
public RecordingJobListener(JobRecordService jobRecordService)
public String getName()
getName in interface org.quartz.JobListenerpublic void jobToBeExecuted(org.quartz.JobExecutionContext context)
jobToBeExecuted in interface org.quartz.JobListenerpublic void jobExecutionVetoed(org.quartz.JobExecutionContext context)
jobExecutionVetoed in interface org.quartz.JobListenerpublic void jobWasExecuted(org.quartz.JobExecutionContext context,
org.quartz.JobExecutionException jobException)
jobWasExecuted in interface org.quartz.JobListenerCopyright © 2019. All rights reserved.