Class RemoveOldBatchJobs
- java.lang.Object
-
- ca.bc.gov.open.cpf.api.scheduler.spi.adminjobs.RemoveOldBatchJobs
-
public class RemoveOldBatchJobs extends Object
Periodically delete Batch Jobs older than the specified number of days, along with all the Batch Jobs associated request and result data.
-
-
Constructor Summary
Constructors Constructor Description RemoveOldBatchJobs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
removeOldJobs()
void
setBatchJobService(BatchJobService batchJobService)
void
setDaysToKeepOldJobs(int daysToKeepOldJobs)
Set the number of days for which old jobs should be kept.
-
-
-
Method Detail
-
removeOldJobs
public void removeOldJobs()
-
setBatchJobService
public void setBatchJobService(BatchJobService batchJobService)
-
setDaysToKeepOldJobs
public void setDaysToKeepOldJobs(int daysToKeepOldJobs)
Set the number of days for which old jobs should be kept. Batch Jobs older than this number of days will be periodically deleted, along with their associated request and result data.- Parameters:
daysToKeepOldJobs
- The Number of days for which old jobs should be kept.
-
-