Task #2612
closed
Implement Sync Update Processor
Added by Anonymous over 9 years ago.
Updated over 9 years ago.
Category:
ndn-atmos-catalog
Description
- informed of new state(s) by ChronoSync
- verify state change Data packet(s) (async op)
- on accept
- retrieve changes
- verify change Data packets (async op)
- on accept
- apply changes to local catalog via Sync Update Executor
- on reject
- on reject
Files
- Blocked by Task #2611: Implement Sync Update Executor added
The attachment is the UML diagram for PublishAdapter (the current implementation for the publication process).
I use PublishAdapter for the sync update, because
- the ChronoSync requires callback function to process the updates and validator when applications use the ChronoSync library, and the callback's job is to decide whether to fetch the listed missing data, I think a function is good enough to do the job;
- the publishAdapter is tightly associated with the "sync processor", e.g., when the PublishAdapter fetches the data and verify it, it injects the data into the local DB, and then needs to notify other sync nodes by publishing it over ChronoSync;
- for the Sync Update Executor, I'm not sure if it should be a separate class, I think its job is the data insertion, and the publishAdapter contains the data insertion as well.
Correct me if I'm wrong.
- Status changed from New to Resolved
- Blocked by deleted (Task #2611: Implement Sync Update Executor)
- Status changed from Resolved to Closed
Also available in: Atom
PDF