Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ClassModuleNotes
ApplicationStartupListeneropensrp-webThis is an implementation of the Spring ApplicationListener that listens for the web app context refresh event. It's in this class that an events processing repeating schedule is wired with the event subject EVENTS-SCHEDULE. Using MotechSchedulerService class a repeating job is started here to run every two minutes. After every two minutes the job emits the "EVENTS-SCHECULE" event subject which is consumed by the EventsListener class.
EventsListeneropensrp-coreThis class consumes the event emitted by the repeating job configured in the ApplicationStartupListener class by adding @MotechListener(subjects =AllConstants.EVENTS_SCHEDULE_SUBJECT) annotation to the processEvent method. It's in this class that the latest events are fetched and forwarded to the EventsRouter. To keep track of the last processed events, an app_state_token(EVENTS_PARSER_LAST_PROCESSED_EVENT) is created in the ConfigService and set to save the last processed event version value in the couch database.

Anchor
EventsRouter
EventsRouter
EventsRouter

opensrp-core

Anchor
ScheduleHandlers
ScheduleHandlers
ScheduleHandlers

opensrp-register
HealthSchedulerServiceopensrp-core
ScheduleServiceopensrp-core
AlertRouteropensrp-core
ECAlertCreationActionopensrp-core
ActionServiceopensrp-core