Package com.zfabrik.util.sync
Interface ISynchronizer
- All Known Implementing Classes:
AbstractComponentRepository
,AbstractExtComponentRepository
public interface ISynchronizer
A Synchronizer participates in system synchoronization. During a synchronization, a synchronizer may
declare any number of resources invalid and subsequently perform synchronization post processing.
The synchronization implementation looks up all synchronizers and implements the following steps:
- Pre-invalidation: Ask all synchronizers for invalid resources via the
preInvalidation(ISynchronization)
method - Invalidate all declared resources.
- Completion:: Complete synchronization via the
complete(ISynchronization)
method.
The following table lists priorities of common synchronizers:
Synchronizer | priority | preInvalidation | order | Completion | order |
---|---|---|---|---|---|
com.zfabrik.boot.repos/synchronizer | 900 | run pre-invalidation on all extensions of AbstractComponentRepo | run complete on all extensions of AbstractComponentRepo | ||
com.zfabrik.components.workeradapter/workerSynchronizer | 800 | Reset worker side db | |||
com.zfabrik.components/querySynchronizer | 550 | Verify component query subscriptions at home and workers | |||
com.zfabrik.workers/workerSynchronizer | 500 | Propagate invalidations to worker. Attain worker target states | |||
com.zfabrik.hubcr/synchronizer | 100 | Trigger update scan on worker-side Hub CR implementation | |||
com.zfabrik.boot.main/homeSynchronizer | 1 | Attain home states (home_up) |
- Author:
- hb
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete
(ISynchronization sync) synchronizers implement this method to re-establish any desired system state after all invalidations have been performed.void
synchronizers implement this method to collect the set of components to invalidate and log messages to the end user.
-
Field Details
-
TYPE
Component type of a synchronizer- See Also:
-
PRIO
Component property defining the priority of a synchronizer- See Also:
-
-
Method Details
-
preInvalidation
synchronizers implement this method to collect the set of components to invalidate and log messages to the end user. -
complete
synchronizers implement this method to re-establish any desired system state after all invalidations have been performed. Note that the set of synchronizer in this call may be different to before, due to new system content.
-