Interface JobEntityManager
-
- All Superinterfaces:
EntityManager<JobEntity>
- All Known Implementing Classes:
JobEntityManagerImpl
public interface JobEntityManager extends EntityManager<JobEntity>
EntityManagerresponsible for theJobEntityclass.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<JobEntity>findExpiredJobs(Page page)longfindJobCountByQueryCriteria(JobQueryImpl jobQuery)Same asfindJobsByQueryCriteria(JobQueryImpl, Page), but only returns a count and not the instances itself.List<JobEntity>findJobsByExecutionId(String executionId)Returns allJobEntityinstances related to onExecutionEntity.List<JobEntity>findJobsByProcessDefinitionId(String processDefinitionId)Returns allJobEntityinstances related to onProcessDefinitionEntity.List<JobEntity>findJobsByProcessInstanceId(String processInstanceId)Returns allJobEntityinstances related to one process instanceExecutionEntity.List<Job>findJobsByQueryCriteria(JobQueryImpl jobQuery, Page page)Executes aJobQueryImpland returns the matchingJobEntityinstances.List<JobEntity>findJobsByTypeAndProcessDefinitionId(String jobTypeTimer, String id)Returns allJobEntityinstances related to onProcessDefinitionEntity.List<JobEntity>findJobsToExecute(Page page)ReturnsJobEntitythat are eligble to be executed.booleaninsertJobEntity(JobEntity timerJobEntity)Insert theJobEntity, similar to#insert(JobEntity), but returns a boolean in case the insert did not go through.voidresetExpiredJob(String jobId)Resets an expired job.voidupdateJobTenantIdForDeployment(String deploymentId, String newTenantId)Changes the tenantId for all jobs related to a givenDeploymentEntity.
-
-
-
Method Detail
-
insertJobEntity
boolean insertJobEntity(JobEntity timerJobEntity)
-
findJobsToExecute
List<JobEntity> findJobsToExecute(Page page)
ReturnsJobEntitythat are eligble to be executed. For example used by the defaultAcquireJobsCmdcommand used by the defaultAcquireTimerJobsRunnableimplementation to get async jobs that can be executed.
-
findJobsByExecutionId
List<JobEntity> findJobsByExecutionId(String executionId)
Returns allJobEntityinstances related to onExecutionEntity.
-
findJobsByProcessDefinitionId
List<JobEntity> findJobsByProcessDefinitionId(String processDefinitionId)
Returns allJobEntityinstances related to onProcessDefinitionEntity.
-
findJobsByTypeAndProcessDefinitionId
List<JobEntity> findJobsByTypeAndProcessDefinitionId(String jobTypeTimer, String id)
Returns allJobEntityinstances related to onProcessDefinitionEntity.
-
findJobsByProcessInstanceId
List<JobEntity> findJobsByProcessInstanceId(String processInstanceId)
Returns allJobEntityinstances related to one process instanceExecutionEntity.
-
findJobsByQueryCriteria
List<Job> findJobsByQueryCriteria(JobQueryImpl jobQuery, Page page)
Executes aJobQueryImpland returns the matchingJobEntityinstances.
-
findJobCountByQueryCriteria
long findJobCountByQueryCriteria(JobQueryImpl jobQuery)
Same asfindJobsByQueryCriteria(JobQueryImpl, Page), but only returns a count and not the instances itself.
-
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 givenDeploymentEntity.
-
-