|
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.CustomPropertyTrigger
public class CustomPropertyTrigger
A simple trigger which fires if a control event occurs.
| Field Summary | |
|---|---|
static java.text.MessageFormat |
MESSAGE_FMT
|
| 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 | |
|---|---|
CustomPropertyTrigger()
|
|
| 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 |
| Field Detail |
|---|
public static final java.text.MessageFormat MESSAGE_FMT
| Constructor Detail |
|---|
public CustomPropertyTrigger()
| Method Detail |
|---|
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 ConfigSchema getConfigSchema()
ConditionalTriggerInterface
getConfigSchema in interface ConditionalTriggerInterfacegetConfigSchema in interface RegisterableTriggerInterfaceRegisterableTriggerInterface.getConfigSchema()
public ConfigResponse getConfigResponse(AppdefEntityID id,
AlertConditionValue cond)
throws InvalidOptionException,
InvalidOptionValueException
ConditionalTriggerInterface
getConfigResponse in interface ConditionalTriggerInterfacecond - the alert condition
InvalidOptionException
InvalidOptionValueExceptionorg.hyperic.hq.bizapp.server.trigger.conditional.ConditionalTriggerInterface#getConfigResponse()
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 void processEvent(AbstractEvent e)
throws EventTypeException
TriggerInterface
processEvent in interface TriggerInterfacee - 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 | ||||||||