Package COM.TIBCO.hawk.console.hawkeye
Class PostAlertEvent
java.lang.Object
java.util.EventObject
COM.TIBCO.hawk.console.hawkeye.MonitorEvent
COM.TIBCO.hawk.console.hawkeye.RuleBaseMonitorEvent
COM.TIBCO.hawk.console.hawkeye.AlertMonitorEvent
COM.TIBCO.hawk.console.hawkeye.PostAlertEvent
- All Implemented Interfaces:
Serializable
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.)-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPostAlertEvent(Object source, RuleBaseStatus r, long alertID, long time, boolean rbChanged, boolean rbeChanged, int rbeState, String text, int state, boolean isRetrans, Properties prop) -
Method Summary
Modifier and TypeMethodDescriptionintThe alert state.The alert text.The alert properties.booleanIndicates whether or not this PostAlertEvent represents a retransmitted alert.Methods inherited from class COM.TIBCO.hawk.console.hawkeye.AlertMonitorEvent
getAlertID, getRuleBaseEngineState, getTimeGenerated, mapAlertState, ruleBaseEngineStateChanged, ruleBaseStateChangedMethods inherited from class COM.TIBCO.hawk.console.hawkeye.RuleBaseMonitorEvent
getRuleBaseStatusMethods inherited from class COM.TIBCO.hawk.console.hawkeye.MonitorEvent
getAgentInstanceMethods inherited from class java.util.EventObject
getSource, toString
-
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
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
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
AlertMonitorListenerfor more details.)
-