|
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.MeasurementThresholdTrigger
public class MeasurementThresholdTrigger
A simple trigger which fires if a measurement event exceeds a threshold.
Field Summary |
---|
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 | |
---|---|
MeasurementThresholdTrigger()
|
Method Summary | |
---|---|
ConfigResponse |
getConfigResponse()
|
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. |
java.lang.Integer |
getMeasurementID()
|
int |
getOperator()
|
protected int |
getOperator(java.lang.String soperator)
extracts the operator |
protected ConfigResponse |
getSharedConfigResponse(AlertConditionValue cond)
|
double |
getThreshold()
|
void |
init(RegisteredTriggerValue tval,
AlertConditionEvaluator alertConditionEvaluator)
Initialize the trigger with a value object. |
void |
processEvent(AbstractEvent e)
Process an event from the dispatcher. |
void |
setMeasurementID(java.lang.Integer val)
|
void |
setOperator(int val)
|
void |
setThreshold(double val)
|
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 MeasurementThresholdTrigger()
Method Detail |
---|
public ConfigResponse getConfigResponse()
public ConfigResponse getConfigResponse(AppdefEntityID id, AlertConditionValue cond) throws InvalidOptionException, InvalidOptionValueException
ConditionalTriggerInterface
getConfigResponse
in interface ConditionalTriggerInterface
cond
- the alert condition
InvalidOptionException
InvalidOptionValueException
public ConfigSchema getConfigSchema()
ConditionalTriggerInterface
getConfigSchema
in interface ConditionalTriggerInterface
getConfigSchema
in interface RegisterableTriggerInterface
RegisterableTriggerInterface.getConfigSchema()
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 java.lang.Integer getMeasurementID()
public int getOperator()
protected int getOperator(java.lang.String soperator) throws InvalidTriggerDataException
InvalidTriggerDataException
protected ConfigResponse getSharedConfigResponse(AlertConditionValue cond) throws InvalidOptionException, InvalidOptionValueException
InvalidOptionException
InvalidOptionValueException
public double getThreshold()
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 providedpublic void setMeasurementID(java.lang.Integer val)
public void setOperator(int val)
public void setThreshold(double val)
|
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 |