Class JobManager
java.lang.Object
org.camunda.bpm.engine.impl.persistence.AbstractManager
org.camunda.bpm.engine.impl.persistence.entity.JobManager
- All Implemented Interfaces:
Session
- Author:
- Tom Baeyens, Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionstatic QueryOrderingProperty
static QueryOrderingProperty
static QueryOrderingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
areInSameProcessInstance
(JobEntity job1, JobEntity job2) void
cancelTimers
(ExecutionEntity execution) protected ListQueryParameterObject
configureParameterizedQuery
(Object parameter) protected void
configureQuery
(JobQueryImpl query) void
void
findJobById
(String jobId) long
findJobCountByQueryCriteria
(JobQueryImpl jobQuery) findJobsByConfiguration
(String jobHandlerType, String jobHandlerConfiguration, String tenantId) findJobsByExecutionId
(String executionId) findJobsByHandlerType
(String handlerType) findJobsByJobDefinitionId
(String jobDefinitionId) findJobsByProcessInstanceId
(String processInstanceId) findJobsByQueryCriteria
(JobQueryImpl jobQuery, Page page) findNextJobsToExecute
(Page page) findTimersByExecutionId
(String executionId) findUnlockedTimersByDuedate
(Date duedate, Page page) protected void
hintJobExecutor
(JobEntity job) void
insertAndHintJobExecutor
(JobEntity jobEntity) void
protected boolean
protected boolean
Sometimes we get a notification of a job that is not yet due, so we should not execute it immediatelyprotected boolean
isJobPriorityInJobExecutorPriorityRange
(long jobPriority) void
reschedule
(JobEntity jobEntity, Date newDuedate) void
schedule
(TimerEntity timer) void
send
(MessageEntity message) void
updateFailedJobRetriesByJobDefinitionId
(String jobDefinitionId, int retries, Date dueDate, boolean isDueDateSet) void
void
updateJobPriorityByDefinitionId
(String jobDefinitionId, long priority) void
updateJobSuspensionStateById
(String jobId, SuspensionState suspensionState) void
updateJobSuspensionStateByJobDefinitionId
(String jobDefinitionId, SuspensionState suspensionState) void
updateJobSuspensionStateByProcessDefinitionId
(String processDefinitionId, SuspensionState suspensionState) void
updateJobSuspensionStateByProcessDefinitionKey
(String processDefinitionKey, SuspensionState suspensionState) void
updateJobSuspensionStateByProcessDefinitionKeyAndTenantId
(String processDefinitionKey, String processDefinitionTenantId, SuspensionState suspensionState) void
updateJobSuspensionStateByProcessInstanceId
(String processInstanceId, SuspensionState suspensionState) void
updateStartTimerJobSuspensionStateByProcessDefinitionId
(String processDefinitionId, SuspensionState suspensionState) void
updateStartTimerJobSuspensionStateByProcessDefinitionKey
(String processDefinitionKey, SuspensionState suspensionState) void
updateStartTimerJobSuspensionStateByProcessDefinitionKeyAndTenantId
(String processDefinitionKey, String processDefinitionTenantId, SuspensionState suspensionState) Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractManager
checkAuthorization, close, configureQuery, delete, deleteAuthorizations, deleteAuthorizationsForGroup, deleteAuthorizationsForUser, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getBatchManager, getByteArrayManager, getCamundaFormDefinitionManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDecisionDefinitionManager, getDecisionRequirementsDefinitionManager, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricBatchManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDecisionInstanceManager, getHistoricDetailManager, getHistoricExternalTaskLogManager, getHistoricIdentityLinkManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricReportManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getTaskReportManager, getTenantManager, getUserOperationLogManager, getVariableInstanceManager, insert, isAuthorizationEnabled, saveDefaultAuthorizations
-
Field Details
-
JOB_PRIORITY_ORDERING_PROPERTY
-
JOB_TYPE_ORDERING_PROPERTY
-
JOB_DUEDATE_ORDERING_PROPERTY
-
-
Constructor Details
-
JobManager
public JobManager()
-
-
Method Details
-
updateJob
-
insertJob
-
deleteJob
-
deleteJob
-
insertAndHintJobExecutor
-
send
-
schedule
-
reschedule
-
hintJobExecutor
-
areInSameProcessInstance
-
isJobPriorityInJobExecutorPriorityRange
protected boolean isJobPriorityInJobExecutorPriorityRange(long jobPriority) -
cancelTimers
-
findJobById
-
findNextJobsToExecute
-
findJobsByExecutionId
-
findJobsByProcessInstanceId
-
findJobsByJobDefinitionId
-
findJobsByHandlerType
-
findUnlockedTimersByDuedate
-
findTimersByExecutionId
-
findJobsByQueryCriteria
-
findDeploymentIdMappingsByQueryCriteria
public List<ImmutablePair<String,String>> findDeploymentIdMappingsByQueryCriteria(JobQueryImpl jobQuery) -
findJobsByConfiguration
-
findJobCountByQueryCriteria
-
updateJobSuspensionStateById
-
updateJobSuspensionStateByJobDefinitionId
public void updateJobSuspensionStateByJobDefinitionId(String jobDefinitionId, SuspensionState suspensionState) -
updateJobSuspensionStateByProcessInstanceId
public void updateJobSuspensionStateByProcessInstanceId(String processInstanceId, SuspensionState suspensionState) -
updateJobSuspensionStateByProcessDefinitionId
public void updateJobSuspensionStateByProcessDefinitionId(String processDefinitionId, SuspensionState suspensionState) -
updateStartTimerJobSuspensionStateByProcessDefinitionId
public void updateStartTimerJobSuspensionStateByProcessDefinitionId(String processDefinitionId, SuspensionState suspensionState) -
updateJobSuspensionStateByProcessDefinitionKey
public void updateJobSuspensionStateByProcessDefinitionKey(String processDefinitionKey, SuspensionState suspensionState) -
updateJobSuspensionStateByProcessDefinitionKeyAndTenantId
public void updateJobSuspensionStateByProcessDefinitionKeyAndTenantId(String processDefinitionKey, String processDefinitionTenantId, SuspensionState suspensionState) -
updateStartTimerJobSuspensionStateByProcessDefinitionKey
public void updateStartTimerJobSuspensionStateByProcessDefinitionKey(String processDefinitionKey, SuspensionState suspensionState) -
updateStartTimerJobSuspensionStateByProcessDefinitionKeyAndTenantId
public void updateStartTimerJobSuspensionStateByProcessDefinitionKeyAndTenantId(String processDefinitionKey, String processDefinitionTenantId, SuspensionState suspensionState) -
updateFailedJobRetriesByJobDefinitionId
-
updateJobPriorityByDefinitionId
-
configureQuery
-
configureParameterizedQuery
-
isEnsureJobDueDateNotNull
protected boolean isEnsureJobDueDateNotNull() -
isJobDue
Sometimes we get a notification of a job that is not yet due, so we should not execute it immediately
-