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 java.util.List<JobEntity>findExpiredJobs(Page page)longfindJobCountByQueryCriteria(JobQueryImpl jobQuery)Same asfindJobsByQueryCriteria(JobQueryImpl, Page), but only returns a count and not the instances itself.java.util.List<JobEntity>findJobsByExecutionId(java.lang.String executionId)Returns allJobEntityinstances related to onExecutionEntity.java.util.List<JobEntity>findJobsByProcessDefinitionId(java.lang.String processDefinitionId)Returns allJobEntityinstances related to onProcessDefinitionEntity.java.util.List<JobEntity>findJobsByProcessInstanceId(java.lang.String processInstanceId)Returns allJobEntityinstances related to one process instanceExecutionEntity.java.util.List<Job>findJobsByQueryCriteria(JobQueryImpl jobQuery, Page page)Executes aJobQueryImpland returns the matchingJobEntityinstances.java.util.List<JobEntity>findJobsByTypeAndProcessDefinitionId(java.lang.String jobTypeTimer, java.lang.String id)Returns allJobEntityinstances related to onProcessDefinitionEntity.java.util.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(java.lang.String jobId)Resets an expired job.voidupdateJobTenantIdForDeployment(java.lang.String deploymentId, java.lang.String newTenantId)Changes the tenantId for all jobs related to a givenDeploymentEntity.
-
-
-
Method Detail
-
insertJobEntity
boolean insertJobEntity(JobEntity timerJobEntity)
-
findJobsToExecute
java.util.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
java.util.List<JobEntity> findJobsByExecutionId(java.lang.String executionId)
Returns allJobEntityinstances related to onExecutionEntity.
-
findJobsByProcessDefinitionId
java.util.List<JobEntity> findJobsByProcessDefinitionId(java.lang.String processDefinitionId)
Returns allJobEntityinstances related to onProcessDefinitionEntity.
-
findJobsByTypeAndProcessDefinitionId
java.util.List<JobEntity> findJobsByTypeAndProcessDefinitionId(java.lang.String jobTypeTimer, java.lang.String id)
Returns allJobEntityinstances related to onProcessDefinitionEntity.
-
findJobsByProcessInstanceId
java.util.List<JobEntity> findJobsByProcessInstanceId(java.lang.String processInstanceId)
Returns allJobEntityinstances related to one process instanceExecutionEntity.
-
findJobsByQueryCriteria
java.util.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(java.lang.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(java.lang.String deploymentId, java.lang.String newTenantId)Changes the tenantId for all jobs related to a givenDeploymentEntity.
-
-