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
serviceConfiguration
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager
dataManager, engineType
-
Constructor Summary
ConstructorsConstructorDescriptionJobInfoEntityManagerImpl
(JobServiceConfiguration jobServiceConfiguration, DM jobDataManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bulkUpdateJobLockWithoutRevisionCheck
(List<T> jobEntities, String lockOwner, Date lockExpirationTime) findExpiredJobs
(List<String> enabledCategories, Page page) findJobsByExecutionId
(String executionId) Returns allJobEntity
instances related to on ExecutionEntity.findJobsByProcessInstanceId
(String processInstanceId) Returns allJobEntity
instances related to one process instance ExecutionEntity.findJobsToExecute
(List<String> enabledCategories, Page page) ReturnsJobEntity
that are eligible to be executed.void
resetExpiredJob
(String jobId) Resets an expired job.void
updateJobTenantIdForDeployment
(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, deleteByteArrayRef
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractServiceEngineEntityManager
getClock, getEventDispatcher, getServiceConfiguration
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager
create, delete, delete, delete, findById, fireEntityDeletedEvent, fireEntityInsertedEvent, fireEntityUpdatedEvent, getDataManager, insert, insert, setDataManager, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.EntityManager
create, delete, delete, delete, findById, insert, insert, update, update
Methods inherited from interface org.flowable.job.service.impl.persistence.entity.JobInfoEntityManager
findJobsToExecuteAndLockInBulk
-
Constructor Details
-
JobInfoEntityManagerImpl
-
-
Method Details
-
findJobsToExecute
Description copied from interface:JobInfoEntityManager
ReturnsJobEntity
that are eligible to be executed. For example used by the defaultAcquireJobsCmd
command used by the default AcquireTimerJobsRunnable implementation to get async jobs that can be executed.- Specified by:
findJobsToExecute
in interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
findJobsByExecutionId
Description copied from interface:JobInfoEntityManager
Returns allJobEntity
instances related to on ExecutionEntity.- Specified by:
findJobsByExecutionId
in interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
findJobsByProcessInstanceId
Description copied from interface:JobInfoEntityManager
Returns allJobEntity
instances related to one process instance ExecutionEntity.- Specified by:
findJobsByProcessInstanceId
in interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
findExpiredJobs
Description copied from interface:JobInfoEntityManager
Returns allJobEntity
instance which are expired, which means that the lock time of theJobEntity
is past a certain configurable date and is deemed to be in error.- Specified by:
findExpiredJobs
in interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
resetExpiredJob
Description copied from interface:JobInfoEntityManager
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.- Specified by:
resetExpiredJob
in interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
bulkUpdateJobLockWithoutRevisionCheck
public void bulkUpdateJobLockWithoutRevisionCheck(List<T> jobEntities, String lockOwner, Date lockExpirationTime) - Specified by:
bulkUpdateJobLockWithoutRevisionCheck
in interfaceJobInfoEntityManager<T extends JobInfoEntity>
-
updateJobTenantIdForDeployment
Description copied from interface:JobInfoEntityManager
Changes the tenantId for all jobs related to a given DeploymentEntity.- Specified by:
updateJobTenantIdForDeployment
in interfaceJobInfoEntityManager<T extends JobInfoEntity>
-