Package com.zfabrik.util.sync
Interface ISynchronizer
-
- All Known Implementing Classes:
AbstractComponentRepository,AbstractExtComponentRepository
public interface ISynchronizerA 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomplete(ISynchronization sync)synchronizers implement this method to re-establish any desired system state after all invalidations have been performed.voidpreInvalidation(ISynchronization sync)synchronizers implement this method to collect the set of components to invalidate and log messages to the end user.
-
-
-
Field Detail
-
TYPE
static final java.lang.String TYPE
Component type of a synchronizer- See Also:
- Constant Field Values
-
PRIO
static final java.lang.String PRIO
Component property defining the priority of a synchronizer- See Also:
- Constant Field Values
-
-
Method Detail
-
preInvalidation
void preInvalidation(ISynchronization sync)
synchronizers implement this method to collect the set of components to invalidate and log messages to the end user.
-
complete
void complete(ISynchronization sync)
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.
-
-