public class JobAcquisitionContext extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,AcquiredJobs> |
acquiredJobsByEngine |
protected Exception |
acquisitionException |
protected long |
acquisitionTime |
protected Map<String,List<List<String>>> |
additionalJobBatchesByEngine |
protected boolean |
isJobAdded |
protected Map<String,List<List<String>>> |
rejectedJobBatchesByEngine |
Constructor and Description |
---|
JobAcquisitionContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
areAllEnginesIdle() |
Map<String,AcquiredJobs> |
getAcquiredJobsByEngine()
Jobs that were acquired in the current acquisition cycle.
|
Exception |
getAcquisitionException() |
long |
getAcquisitionTime() |
Map<String,List<List<String>>> |
getAdditionalJobsByEngine()
Jobs that have been acquired in previous cycles and are supposed to
be re-submitted for execution
|
Map<String,List<List<String>>> |
getRejectedJobsByEngine()
Jobs that were rejected from execution in the acquisition cycle
due to lacking execution resources.
|
boolean |
hasJobAcquisitionLockFailureOccurred()
true if at least one job could not be locked, regardless of engine
|
boolean |
isJobAdded() |
void |
reset() |
void |
setAcquisitionException(Exception e) |
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) |
protected Map<String,AcquiredJobs> acquiredJobsByEngine
protected Exception acquisitionException
protected long acquisitionTime
protected boolean isJobAdded
public void submitAcquiredJobs(String engineName, AcquiredJobs acquiredJobs)
public void submitAdditionalJobBatch(String engineName, List<String> jobIds)
public void reset()
public boolean areAllEnginesIdle()
public boolean hasJobAcquisitionLockFailureOccurred()
public void setAcquisitionTime(long acquisitionTime)
public long getAcquisitionTime()
public Map<String,AcquiredJobs> getAcquiredJobsByEngine()
public Map<String,List<List<String>>> getRejectedJobsByEngine()
public Map<String,List<List<String>>> getAdditionalJobsByEngine()
public void setAcquisitionException(Exception e)
public Exception getAcquisitionException()
public void setJobAdded(boolean isJobAdded)
public boolean isJobAdded()
Copyright © 2018. All rights reserved.