Class PostAlertEvent

All Implemented Interfaces:
Serializable

public class PostAlertEvent extends AlertMonitorEvent
PostAlertEvents are generated when a rulebase loaded in the agent's rulebase engine sends an alert. A PostAlertEvent is said to be "active" until cleared by a corresponding ClearAlertEvent. (See AlertMonitorListener for more details.)
See Also:
  • Constructor Details

    • PostAlertEvent

      public PostAlertEvent(Object source, RuleBaseStatus r, long alertID, long time, boolean rbChanged, boolean rbeChanged, int rbeState, String text, int state, boolean isRetrans, Properties prop)
  • Method Details

    • getAlertText

      public String getAlertText()
      The alert text.
    • getAlertState

      public int getAlertState()
      The alert state. Alert states should be mapped by the constants defined in the AlertState interface.
      See Also:
    • getProperties

      public Properties getProperties()
      The alert properties. Contains various properties of the alert. This includes:
      • Rule - identifies the rule that generated this alert
      • Test - identifies the test that generated this alert
      • DataSource - identifies the data source used by the test to generate this alert
      • DataIndex - identifies the data index used by the test to generate this alert
      • Action - identifies the specific test's action that generated this alert
    • isRetransmittedAlert

      public boolean isRetransmittedAlert()
      Indicates whether or not this PostAlertEvent represents a retransmitted alert. Retransmitted alerts are delivered as a result of a call to AgentInstance.retransmitAlerts().

      PostAlertEvents are delivered to AlertMonitorListener objects. Depending on your application, retransmitted alerts may require special handling. (See AlertMonitorListener for more details.)

      See Also: