public class JobStatusUpdater extends Object
Modifier and Type | Field and Description |
---|---|
protected EntityFactory |
entityFactory |
protected JobStatusDAO |
jobStatusDAO |
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
JobStatusUpdater() |
Modifier and Type | Method and Description |
---|---|
void |
update(JobStatusEvent event)
It's important to note that responding to job status updates
must be done in async mode, and via a separate special thread executor
that attempts to synchronize job execution serially by only making one thread
active at a given time.
|
protected static final org.slf4j.Logger LOG
@Autowired protected JobStatusDAO jobStatusDAO
@Autowired protected EntityFactory entityFactory
@Async(value="jobStatusUpdaterThreadExecutor") @EventListener public void update(JobStatusEvent event)
event
- the eventCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.