Ticket #118 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

Alert service should send out alerts on a configurable schedule

Reported by: ebrown Assigned to: ebrown
Priority: medium Milestone:
Component: topaz Version: 0.5-SNAPSHOT
Keywords: alert Cc:
Blocking: Blocked By:

Description

Current thinking is to create a servlet whose init() method loads a class whose static initializer creates a thread to send alerts on a configurable schedule.

Dependency Graph

Change History

08/11/06 17:07:32 changed by ebrown

  • priority changed from unassigned to medium.
  • milestone changed from TBD to august25.

08/25/06 23:40:15 changed by ebrown

(In [525]) re #118 Setup MasterWebAppListener? to allow web-apps to register own listeners without needing to modify their web.xml. Moved listener that initialized models to run from master via topaz-common-config.xml.

Final step is to write code to initialize alerts via its topaz-config.xml.

08/28/06 01:56:52 changed by ebrown

(In [532]) re #118 Implementation to send out alerts on configurable schedule

Adds the quartz scheduler to the base-webapp and reads configuration for the scheduler and its jobs from topaz's configuration.

This still requires the web.xml merge in the alerts webservice to close and test #118.

08/28/06 15:27:23 changed by ebrown

  • status changed from new to closed.
  • resolution set to fixed.

(In [542]) fixes #118 send alerts on a schedule

Mostly this just removes web.xml in favor of base-ws-webapp's web.xml per [427]. That was the only thing missing to making this work.

How to test

Not sure how to write an integration test for this. So just modify alerts/ws-webapp/src/main/webapp/WEB-INF/topaz-config.xml to send alerts every minute. (Set cron to "0 * * * * ?".) Run the integration tests and notice that every minute on the minute, an attempt is made to send out all alerts. Logging level of INFO is required. (It is possible depending on timing that doing this will break the integration test as the job will send out an alert that an integration test was expecting to send out. It'd be fairly rare - like amost never, however, for this to happen.)

10/29/07 21:12:47 changed by

  • milestone deleted.

Milestone august25 deleted