Interface JobInfoEntityManager<T extends JobInfoEntity>
- All Superinterfaces:
EntityManager<T>
- All Known Subinterfaces:
ExternalWorkerJobEntityManager,HistoryJobEntityManager,JobEntityManager,TimerJobEntityManager
- All Known Implementing Classes:
ExternalWorkerJobEntityManagerImpl,HistoryJobEntityManagerImpl,JobEntityManagerImpl,JobInfoEntityManagerImpl,TimerJobEntityManagerImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidbulkUpdateJobLockWithoutRevisionCheck(List<T> jobEntities, String lockOwner, Date lockExpirationTime) findExpiredJobs(List<String> enabledCategories, Page page) findJobsByExecutionId(String executionId) Returns allJobEntityinstances related to on ExecutionEntity.findJobsByProcessInstanceId(String processInstanceId) Returns allJobEntityinstances related to one process instance ExecutionEntity.findJobsToExecute(List<String> enabledCategories, Page page) ReturnsJobEntitythat are eligible to be executed.findJobsToExecuteAndLockInBulk(List<String> enabledCategories, Page page, String lockOwner, Date lockExpirationTime) voidresetExpiredJob(String jobId) Resets an expired job.voidupdateJobTenantIdForDeployment(String deploymentId, String newTenantId) Changes the tenantId for all jobs related to a given DeploymentEntity.
-
Method Details
-
findJobsToExecute
ReturnsJobEntitythat are eligible to be executed. For example used by the defaultAcquireJobsCmdcommand used by the default AcquireTimerJobsRunnable implementation to get async jobs that can be executed. -
findJobsByExecutionId
Returns allJobEntityinstances related to on ExecutionEntity. -
findJobsByProcessInstanceId
Returns allJobEntityinstances related to one process instance ExecutionEntity. -
findExpiredJobs
-
resetExpiredJob
Resets an expired job. These are jobs that were locked, but not completed. Resetting these will make them available for being picked up by other executors. -
updateJobTenantIdForDeployment
Changes the tenantId for all jobs related to a given DeploymentEntity. -
findJobsToExecuteAndLockInBulk
-
bulkUpdateJobLockWithoutRevisionCheck
-