Class JobStatusUpdater
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.job.JobStatusUpdater
-
public class JobStatusUpdater extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityFactory
entityFactory
protected JobStatusDAO
jobStatusDAO
protected static Logger
LOG
-
Constructor Summary
Constructors Constructor Description JobStatusUpdater(JobStatusDAO jobStatusDAO, EntityFactory entityFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
jobStatusDAO
protected final JobStatusDAO jobStatusDAO
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
JobStatusUpdater
public JobStatusUpdater(JobStatusDAO jobStatusDAO, EntityFactory entityFactory)
-
-
Method Detail
-
update
@Async("jobStatusUpdaterThreadExecutor") @EventListener public 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. Not doing so will force the event executor to launch separate threads per each status update, which would result in multiple concurrent INSERT operations on the database, and failing.- Parameters:
event
- the event
-
-