Changes between Version 5 and Version 6 of Document/Development/Design/Framework/EventArchitecture
- Timestamp:
- 07/04/07 23:25:37 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Document/Development/Design/Framework/EventArchitecture
v5 v6 9 9 === `Event Watcher` === 10 10 11 It will be the subject (Observer pattern) which intends to call all the registered watcher to get known if any event has ocurred. An `ebox-watcher` will be installed at '''cron''' that it will check every steptime for executing any script.11 It will be the subject (Observer pattern) which intends to call all the registered watcher to get known if any event has ocurred. An `ebox-watcher` will be executed as a daemon that it will check every steptime for executing any `concrete watcher`. Once an event has been raised, it is sent to the `Event Dispatcher` which dispatches the event to the dispatchers that the event watcher decides. If any dispatcher is not plugged, the event is not sent over this dispatcher. This issue is silently ignored. 12 12 13 13 === `Concrete Watcher` === 14 14 15 It will be one the watcher. An example could be a `DiskFullWatcher` which takes care if the disk is full to fill it out more. It will be called by `ebox-watcher` whenever its periodicity says so. 15 It will be one the watcher. An example could be a `DiskFullWatcher` which takes care if the disk is full to fill it out more. It will be called by `ebox-watcher` whenever its periodicity says so. Every watcher can decide to where the event will be dispatched, '''any''' is an option to send everywhere possible. 16 16 17 17 === `Event Dispatcher` === 18 18 19 Called everytime a new event has been raised, it will dispatch all the new events registered to the registered dispatcherdepending on the possibilities.19 It receives events from the `event watcher`. Its burden is sending the event to where the event says so depending on the possibilities. 20 20 21 21 === `Event Concrete Dispatcher` ===