|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.events.server.session.SingleConditionEvaluator
public class SingleConditionEvaluator
Implementation of AlertConditionEvaluator
that sends a new
AlertConditionsSatisfiedZEvent
to its ExecutionStrategy
whenever a trigger is fired, representing the evaluation of a single
condition.
Constructor Summary | |
---|---|
SingleConditionEvaluator(java.lang.Integer alertDefinitionId,
ExecutionStrategy executionStrategy)
|
Method Summary | |
---|---|
java.lang.Integer |
getAlertDefinitionId()
|
ExecutionStrategy |
getExecutionStrategy()
|
java.io.Serializable |
getState()
|
void |
initialize(java.io.Serializable initialState)
Initializes this evaluator |
void |
triggerFired(TriggerFiredEvent event)
A trigger was fired, indicating an alert condition evaluated to true |
void |
triggerNotFired(TriggerNotFiredEvent event)
A trigger was not fired, indicating that an alert condition evaluated to false |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleConditionEvaluator(java.lang.Integer alertDefinitionId, ExecutionStrategy executionStrategy)
alertDefinitionId
- The ID of the alert definition whose conditions
are being evaluatedexecutionStrategy
- The ExecutionStrategy
to use for firing
an AlertConditionsSatisfiedZEvent
when a condition has
been metMethod Detail |
---|
public java.lang.Integer getAlertDefinitionId()
getAlertDefinitionId
in interface AlertConditionEvaluator
public ExecutionStrategy getExecutionStrategy()
getExecutionStrategy
in interface AlertConditionEvaluator
ExecutionStrategy
used by this evaluator to fire alert condition satisfied eventspublic java.io.Serializable getState()
getState
in interface AlertConditionEvaluator
public void initialize(java.io.Serializable initialState)
AlertConditionEvaluator
initialize
in interface AlertConditionEvaluator
initialState
- Any state that was saved by the evaluator with this alertDefinitionId the last time the server was shutdown. May be null if no state saved.public void triggerFired(TriggerFiredEvent event)
AlertConditionEvaluator
triggerFired
in interface AlertConditionEvaluator
event
- The TriggerFiredEvent
representing the data that
caused the condition to evaluate to truepublic void triggerNotFired(TriggerNotFiredEvent event)
AlertConditionEvaluator
triggerNotFired
in interface AlertConditionEvaluator
event
- The TriggerNotFiredEvent
representing the data that
caused the condition to evaluate to true
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |