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
public interface JobInfoEntityManager<T extends JobInfoEntity> extends EntityManager<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidbulkUpdateJobLockWithoutRevisionCheck(List<T> jobEntities, String lockOwner, Date lockExpirationTime)List<T>findExpiredJobs(List<String> enabledCategories, Page page)List<T>findJobsByExecutionId(String executionId)Returns allJobEntityinstances related to on ExecutionEntity.List<T>findJobsByProcessInstanceId(String processInstanceId)Returns allJobEntityinstances related to one process instance ExecutionEntity.List<T>findJobsToExecute(List<String> enabledCategories, Page page)ReturnsJobEntitythat are eligible to be executed.default List<T>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 Detail
-
findJobsToExecute
List<T> findJobsToExecute(List<String> enabledCategories, Page page)
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
List<T> findJobsByExecutionId(String executionId)
Returns allJobEntityinstances related to on ExecutionEntity.
-
findJobsByProcessInstanceId
List<T> findJobsByProcessInstanceId(String processInstanceId)
Returns allJobEntityinstances related to one process instance ExecutionEntity.
-
resetExpiredJob
void resetExpiredJob(String jobId)
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
void updateJobTenantIdForDeployment(String deploymentId, String newTenantId)
Changes the tenantId for all jobs related to a given DeploymentEntity.
-
findJobsToExecuteAndLockInBulk
default List<T> findJobsToExecuteAndLockInBulk(List<String> enabledCategories, Page page, String lockOwner, Date lockExpirationTime)
-
-