Class JobInfoEntityManagerImpl<T extends JobInfoEntity,DM extends JobInfoDataManager<T>>
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager<EntityImpl,DM>
org.flowable.common.engine.impl.persistence.entity.AbstractServiceEngineEntityManager<JobServiceConfiguration,EntityImpl,DM>
org.flowable.job.service.impl.persistence.entity.AbstractJobServiceEngineEntityManager<T,DM>
org.flowable.job.service.impl.persistence.entity.JobInfoEntityManagerImpl<T,DM>
- All Implemented Interfaces:
EntityManager<T>,JobInfoEntityManager<T>
- Direct Known Subclasses:
ExternalWorkerJobEntityManagerImpl,HistoryJobEntityManagerImpl,JobEntityManagerImpl,TimerJobEntityManagerImpl
public abstract class JobInfoEntityManagerImpl<T extends JobInfoEntity,DM extends JobInfoDataManager<T>>
extends AbstractJobServiceEngineEntityManager<T,DM>
implements JobInfoEntityManager<T>
- Author:
- Tom Baeyens, Daniel Meyer, Joram Barrez
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractServiceEngineEntityManager
serviceConfigurationFields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager
dataManager, engineType -
Constructor Summary
ConstructorsConstructorDescriptionJobInfoEntityManagerImpl(JobServiceConfiguration jobServiceConfiguration, DM jobDataManager) -
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.voidresetExpiredJob(String jobId) Resets an expired job.voidupdateJobTenantIdForDeployment(String deploymentId, String newTenantId) Changes the tenantId for all jobs related to a given DeploymentEntity.Methods inherited from class org.flowable.job.service.impl.persistence.entity.AbstractJobServiceEngineEntityManager
bulkDeleteByteArraysById, createEntityEvent, deleteByteArrayRefMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractServiceEngineEntityManager
getClock, getEventDispatcher, getServiceConfigurationMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager
create, delete, delete, delete, findById, fireEntityDeletedEvent, fireEntityInsertedEvent, fireEntityUpdatedEvent, getDataManager, insert, insert, setDataManager, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.EntityManager
create, delete, delete, delete, findById, insert, insert, update, updateMethods inherited from interface org.flowable.job.service.impl.persistence.entity.JobInfoEntityManager
findJobsToExecuteAndLockInBulk
-
Constructor Details
-
JobInfoEntityManagerImpl
-
-
Method Details
-
findJobsToExecute
Description copied from interface:JobInfoEntityManagerReturnsJobEntitythat 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.- Specified by:
findJobsToExecutein interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
findJobsByExecutionId
Description copied from interface:JobInfoEntityManagerReturns allJobEntityinstances related to on ExecutionEntity.- Specified by:
findJobsByExecutionIdin interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
findJobsByProcessInstanceId
Description copied from interface:JobInfoEntityManagerReturns allJobEntityinstances related to one process instance ExecutionEntity.- Specified by:
findJobsByProcessInstanceIdin interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
findExpiredJobs
Description copied from interface:JobInfoEntityManagerReturns allJobEntityinstance which are expired, which means that the lock time of theJobEntityis past a certain configurable date and is deemed to be in error.- Specified by:
findExpiredJobsin interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
resetExpiredJob
Description copied from interface:JobInfoEntityManagerResets 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.- Specified by:
resetExpiredJobin interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
bulkUpdateJobLockWithoutRevisionCheck
public void bulkUpdateJobLockWithoutRevisionCheck(List<T> jobEntities, String lockOwner, Date lockExpirationTime) - Specified by:
bulkUpdateJobLockWithoutRevisionCheckin interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
updateJobTenantIdForDeployment
Description copied from interface:JobInfoEntityManagerChanges the tenantId for all jobs related to a given DeploymentEntity.- Specified by:
updateJobTenantIdForDeploymentin interfaceJobInfoEntityManager<T extends JobInfoEntity>
-