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.| Constructor and Description |
|---|
DataPurgeJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateOOBs()
Calculate the OOB values for the last hour.
|
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.JobExecutionExceptionpublic void calculateOOBs()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.