Class JobAcquisitionContext
java.lang.Object
org.camunda.bpm.engine.impl.jobexecutor.JobAcquisitionContext
- Author:
- Thorben Lindhauer
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
AcquiredJobs> protected Exception
protected long
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Jobs that were acquired in the current acquisition cycle.long
Jobs that have been acquired in previous cycles and are supposed to be re-submitted for executionJobs that were rejected from execution in the acquisition cycle due to lacking execution resources.boolean
true if at least one job could not be locked, regardless of engineboolean
void
reset()
void
void
setAcquisitionTime
(long acquisitionTime) void
setJobAdded
(boolean isJobAdded) void
submitAcquiredJobs
(String engineName, AcquiredJobs acquiredJobs) void
submitAdditionalJobBatch
(String engineName, List<String> jobIds) void
submitRejectedBatch
(String engineName, List<String> jobIds)
-
Field Details
-
rejectedJobBatchesByEngine
-
acquiredJobsByEngine
-
additionalJobBatchesByEngine
-
acquisitionException
-
acquisitionTime
protected long acquisitionTime -
isJobAdded
protected boolean isJobAdded
-
-
Constructor Details
-
JobAcquisitionContext
public JobAcquisitionContext()
-
-
Method Details
-
submitRejectedBatch
-
submitAcquiredJobs
-
submitAdditionalJobBatch
-
reset
public void reset() -
areAllEnginesIdle
public boolean areAllEnginesIdle()- Returns:
- true, if for all engines there were less jobs acquired than requested
-
hasJobAcquisitionLockFailureOccurred
public boolean hasJobAcquisitionLockFailureOccurred()true if at least one job could not be locked, regardless of engine -
setAcquisitionTime
public void setAcquisitionTime(long acquisitionTime) -
getAcquisitionTime
public long getAcquisitionTime() -
getAcquiredJobsByEngine
Jobs that were acquired in the current acquisition cycle.- Returns:
-
getRejectedJobsByEngine
Jobs that were rejected from execution in the acquisition cycle due to lacking execution resources. With an execution thread pool, these jobs could not be submitted due to saturation of the underlying job queue. -
getAdditionalJobsByEngine
Jobs that have been acquired in previous cycles and are supposed to be re-submitted for execution -
setAcquisitionException
-
getAcquisitionException
-
setJobAdded
public void setJobAdded(boolean isJobAdded) -
isJobAdded
public boolean isJobAdded()
-