Package org.imixs.archive.service
Class SyncScheduler
- java.lang.Object
-
- org.imixs.archive.service.SyncScheduler
-
@DeclareRoles("org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS") public class SyncScheduler extends ObjectThe SyncScheduler starts a TimerService to pull new snapshot events from the workflow instance and push the snapshot data into the cassandra cluster- Version:
- 3.0
- Author:
- ralph.soika@imixs.com
- See Also:
SyncService
-
-
Constructor Summary
Constructors Constructor Description SyncScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Initialize ManagedScheduledExecutorServicevoidrun(javax.ejb.Timer timer)This method is called by the TimerService.
-
-
-
Method Detail
-
init
@PostConstruct public void init()
Initialize ManagedScheduledExecutorService
-
run
public void run(javax.ejb.Timer timer)
This method is called by the TimerService.In case of a form based authentication, the method tries to login to the workflow instance first and stores the JSESSIONID into the timer config. If a JSESSIONID already exist, the id is reused. This is to avoid multiple login session to the workflow instance.
In case of a Basic authentication no explicit login is performed (because implicit basic authentication is sufficient).
- Throws:
ArchiveException
-
-