|
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.ControlEventTrigger
public class ControlEventTrigger
A simple trigger which fires if a control event occurs.
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 | |
---|---|
ControlEventTrigger()
|
Method Summary | |
---|---|
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. |
void |
init(RegisteredTriggerValue tval,
AlertConditionEvaluator alertConditionEvaluator)
Initialize the trigger with a value object. |
void |
processEvent(AbstractEvent e)
Process an event from the dispatcher. |
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 ControlEventTrigger()
Method Detail |
---|
public java.lang.Class[] getInterestedEventTypes()
RegisterableTriggerInterface
getInterestedEventTypes
in interface RegisterableTriggerInterface
RegisterableTriggerInterface.getInterestedEventTypes()
public java.lang.Integer[] getInterestedInstanceIDs(java.lang.Class c)
RegisterableTriggerInterface
getInterestedInstanceIDs
in interface RegisterableTriggerInterface
c
- Class to get the interested event IDs for
RegisterableTriggerInterface.getInterestedInstanceIDs(java.lang.Class)
public ConfigSchema getConfigSchema()
ConditionalTriggerInterface
getConfigSchema
in interface ConditionalTriggerInterface
getConfigSchema
in interface RegisterableTriggerInterface
RegisterableTriggerInterface.getConfigSchema()
public ConfigResponse getConfigResponse(AppdefEntityID id, AlertConditionValue cond) throws InvalidOptionException, InvalidOptionValueException
ConditionalTriggerInterface
getConfigResponse
in interface ConditionalTriggerInterface
cond
- the alert condition
InvalidOptionException
InvalidOptionValueException
org.hyperic.hq.bizapp.server.trigger.conditional.ConditionalTriggerInterface#getConfigResponse()
public void init(RegisteredTriggerValue tval, AlertConditionEvaluator alertConditionEvaluator) throws InvalidTriggerDataException
RegisterableTriggerInterface
init
in interface RegisterableTriggerInterface
tval
- 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 void processEvent(AbstractEvent e) throws EventTypeException
TriggerInterface
processEvent
in interface TriggerInterface
e
- the Event to process
EventTypeException
- if the trigger does not process events of
the type providedorg.hyperic.hq.events.AbstractEvent#processEvent()
|
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 |