public class DataPurgeJob extends AbstractStatefulJob
StatefulJob (as opposed to Job) because we do not need nor want
this job triggered concurrently. That is, we don't want multiple data purge jobs performing the data purge at the
same time.
Note, some of the work previously performed in this job has been moved to DataCalcJob.| Constructor and Description |
|---|
DataPurgeJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeJobCode(org.quartz.JobExecutionContext context)
Subclasses should implement this method to perform the actual job.
|
static void |
purgeNow()
Schedules a purge job to trigger right now.
|
executepublic static void purgeNow()
throws Exception
DataPurgeJob is an implementation of StatefulJob).Exception - if failed to schedule the data purge for immediate executionpublic void executeJobCode(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
AbstractStatefulJobexecuteJobCode in class AbstractStatefulJoborg.quartz.JobExecutionExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.