Versions Compared

Key

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

...

There the following property files:

  • alertsCore.cfg (in sc- core module)
  • alerts.cfg (in sc- web-admin module)
  • alerts0.cfg (in specific project module)

...

JMX configuration allows change alert limits and enable/disable selected alerts.

Spring configuration

Basic configuration follows:

  • inits alerts configuration from property files
  • inits service for executing SQL queries and checking limits
  • inits default listener that sends email to administrators for each alert that will be activated

sp_camel_services.xml:

Code Block
    <bean id="alertsConfiguration" class="org.openhubframework.openhub.core.alerts.AlertsPropertiesConfiguration">
        <constructor-arg ref="confProperties"/>
    </bean>
    <bean id="alertsCheckingService" class="org.openhubframework.openhub.core.alerts.AlertsCheckingServiceDbImpl"/>
    <bean class="org.openhubframework.openhub.core.alerts.EmailAlertListenerSupport"/>

spring-ws-servlet.xml - adding property files:

...

Reaction to alert activation

...