Interface CronJobDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCronJobDao
The cronjob DAO interface. Used for finding the cronjob and jobs in the backend.
- Since:
- 4.3
- Spring Bean ID:
- cronJobDao
-
Method Summary
Modifier and TypeMethodDescriptionfindCronJobs(String code) Search with the given code forCronJobitems.default List<CronJobModel>findLastCronJobsWithJob(JobModel jobModel, int limit) Finds lastCronJobModellinked to givenJobModel.Finds allCronJobModelinstance in state RUNNING or RUNNINGRESTART.booleanisAbortable(CronJobModel cronJobModel) Checks if given cronJobModel as abortable or not.booleanisPerformable(CronJobModel cronJobModel) Checks if given cronJobModel as performable or not.
-
Method Details
-
findCronJobs
Search with the given code forCronJobitems.- Parameters:
code- the CronJob code- Returns:
- a List with
CronJobModels. Returns an empty List if nothing was found.
-
findRunningCronJobs
List<CronJobModel> findRunningCronJobs()Finds allCronJobModelinstance in state RUNNING or RUNNINGRESTART. -
isPerformable
Checks if given cronJobModel as performable or not. -
isAbortable
Checks if given cronJobModel as abortable or not. -
findLastCronJobsWithJob
Finds lastCronJobModellinked to givenJobModel. Limits results to a given limit
-