org.rhq.enterprise.server.alert
Interface AlertDampeningManagerLocal

All Known Implementing Classes:
AlertDampeningManagerBean

public interface AlertDampeningManagerLocal

Author:
Joseph Marques

Method Summary
 org.rhq.core.domain.alert.AlertDampeningEvent getLatestEventByAlertDefinitionId(int alertDefinitionId)
           
 void processEventType(int alertDefinitionId, org.rhq.core.domain.alert.AlertDampeningEvent.Type eventType)
          Performs processing as needed for the type of event on the given AlertDefinition.
 

Method Detail

getLatestEventByAlertDefinitionId

org.rhq.core.domain.alert.AlertDampeningEvent getLatestEventByAlertDefinitionId(int alertDefinitionId)

processEventType

void processEventType(int alertDefinitionId,
                      org.rhq.core.domain.alert.AlertDampeningEvent.Type eventType)
Performs processing as needed for the type of event on the given AlertDefinition. If the condition set for an alert definition has been satisfied, and the chosen dampening rule has also been satisfied, it will fire an alert. In most instances, this can be calculated immediately and synchronously at the time this method is called. However, in at least one instance, this can not be known immediately. Thus, in this case, the method will start a timer to keep track of when it should fire an alert in the future. Subsequent calls to this method will either update or delete the timer as appropriate to satisfy the business semantics of the supported dampening rules.



Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.