public interface ISynchronizer
The synchronization implementation looks up all synchronizers and implements the following steps:
preInvalidation(ISynchronization)
methodcomplete(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) |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRIO
Component property defining the priority of a synchronizer
|
static java.lang.String |
TYPE
Component type of a synchronizer
|
Modifier and Type | Method and Description |
---|---|
void |
complete(ISynchronization sync)
synchronizers implement this method to re-establish any desired
system state after all invalidations have been performed.
|
void |
preInvalidation(ISynchronization sync)
synchronizers implement this method to collect the set of components to invalidate
and log messages to the end user.
|
static final java.lang.String TYPE
static final java.lang.String PRIO
void preInvalidation(ISynchronization sync)
void complete(ISynchronization sync)