org.rhq.enterprise.server.alert
Class AlertDampeningManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.alert.AlertDampeningManagerBean
All Implemented Interfaces:
AlertDampeningManagerLocal

public class AlertDampeningManagerBean
extends Object
implements AlertDampeningManagerLocal

Author:
Joseph Marques

Constructor Summary
AlertDampeningManagerBean()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertDampeningManagerBean

public AlertDampeningManagerBean()
Method Detail

getLatestEventByAlertDefinitionId

public org.rhq.core.domain.alert.AlertDampeningEvent getLatestEventByAlertDefinitionId(int alertDefinitionId)
Specified by:
getLatestEventByAlertDefinitionId in interface AlertDampeningManagerLocal

processEventType

public void processEventType(int alertDefinitionId,
                             org.rhq.core.domain.alert.AlertDampeningEvent.Type eventType)
Description copied from interface: AlertDampeningManagerLocal
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.

Specified by:
processEventType in interface AlertDampeningManagerLocal


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