|
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.ext.AbstractTrigger
org.hyperic.hq.bizapp.server.trigger.conditional.AlertTrigger
public class AlertTrigger
The AlertTrigger fires when an alert is fired from a specified alert definition.
| Field Summary |
|---|
| Fields inherited from class org.hyperic.hq.events.ext.AbstractTrigger |
|---|
log |
| Fields inherited from interface org.hyperic.hq.bizapp.server.trigger.conditional.ConditionalTriggerInterface |
|---|
CFG_COMPARATOR, CFG_ID, CFG_NAME, CFG_OPTION, CFG_THRESHOLD, CFG_TYPE, MAP_COND_TRIGGER |
| Constructor Summary | |
|---|---|
AlertTrigger()
Creates a new instance of AlertTrigger |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getAlertDefinitionId()
|
ConfigResponse |
getConfigResponse(AppdefEntityID id,
AlertConditionValue cond)
Translate alert condition to config response object |
ConfigSchema |
getConfigSchema()
Return the schema for the configuration of this trigger. |
java.lang.Class[] |
getInterestedEventTypes()
Get the event classes that the trigger is interested in seeing. |
java.lang.Integer[] |
getInterestedInstanceIDs(java.lang.Class c)
Get a list of instance IDs specific to a class (as returned by getInterestedEventTypes) which the trigger is interested in seeing. |
long |
getTimeRange()
Getter for property timeRange. |
void |
init(RegisteredTriggerValue tval,
AlertConditionEvaluator alertConditionEvaluator)
Initialize the trigger with a value object. |
void |
processEvent(AbstractEvent event)
Process an event from the dispatcher. |
void |
setAlertDefinitionId(java.lang.Integer val)
|
void |
setTimeRange(long val)
Setter for property timeRange. |
| Methods inherited from class org.hyperic.hq.events.ext.AbstractTrigger |
|---|
fireActions, getId, isEnabled, notFired, prepareTriggerFiredEvent, prepareTriggerFiredEvent, setAlertConditionEvaluator, setEnabled, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlertTrigger()
| Method Detail |
|---|
public void processEvent(AbstractEvent event)
throws EventTypeException
TriggerInterface
processEvent in interface TriggerInterfaceevent - the Event to process
EventTypeException - if the trigger does not process events of
the type providedpublic ConfigSchema getConfigSchema()
ConditionalTriggerInterface
getConfigSchema in interface ConditionalTriggerInterfacegetConfigSchema in interface RegisterableTriggerInterfaceRegisterableTriggerInterface.getConfigSchema()public java.lang.Class[] getInterestedEventTypes()
RegisterableTriggerInterface
getInterestedEventTypes in interface RegisterableTriggerInterfaceRegisterableTriggerInterface.getInterestedEventTypes()public java.lang.Integer[] getInterestedInstanceIDs(java.lang.Class c)
RegisterableTriggerInterface
getInterestedInstanceIDs in interface RegisterableTriggerInterfacec - Class to get the interested event IDs for
RegisterableTriggerInterface.getInterestedInstanceIDs(java.lang.Class)
public void init(RegisteredTriggerValue tval,
AlertConditionEvaluator alertConditionEvaluator)
throws InvalidTriggerDataException
RegisterableTriggerInterface
init in interface RegisterableTriggerInterfacetval - The trigger data object containing all the configuration dataalertConditionEvaluator - The evaluator to use for reporting trigger fired/trigger not fired events
InvalidTriggerDataException - if the configuration data is invalid.org.hyperic.hq.events.ext.RegisterableTriggerInterface#init(org.hyperic.hq.events.shared.RegisteredTriggerValue)public long getTimeRange()
public void setTimeRange(long val)
timeRange - New value of property timeRange.public java.lang.Integer getAlertDefinitionId()
public void setAlertDefinitionId(java.lang.Integer val)
alertDefinitionId - New value of property alertDefinitionId.
public ConfigResponse getConfigResponse(AppdefEntityID id,
AlertConditionValue cond)
throws InvalidOptionException,
InvalidOptionValueException
ConditionalTriggerInterface
getConfigResponse in interface ConditionalTriggerInterfacecond - the alert condition
InvalidOptionException
InvalidOptionValueException
|
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 | ||||||||