org.hyperic.hq.galerts.processor
Class Gtrigger
java.lang.Object
org.hyperic.hq.galerts.processor.Gtrigger
- Direct Known Subclasses:
- MeasurementGtrigger
public abstract class Gtrigger
- extends java.lang.Object
The Gtrigger is a trigger which can participate in group-alerting activities.
The purpose of the trigger is to monitor events, and 'fire' when it deems
necessary.
The lifecycle of the trigger is as follows:
- setGroup is called to inform the trigger of the environment it is in
- getInterestedEvents is then called to tell the alerting system which
events the trigger will be listenting to.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Gtrigger
public Gtrigger()
processEvent
public abstract void processEvent(Zevent event)
getInterestedEvents
public abstract java.util.Set getInterestedEvents()
setGroup
public abstract void setGroup(ResourceGroup g)
getStrategy
protected ExecutionStrategy getStrategy()
- Returns:
- The execution strategy for this trigger or
null
if
the strategy has not been set yet.
getAlertDefName
protected java.lang.String getAlertDefName()
- Returns:
- The alert definition name or
null
if the alert
definition has not been set yet.
setFired
protected void setFired(FireReason reason)
- Called by the subclass to fire based on the passed reason.
- Parameters:
reason
- Reason the trigger fired. This is used to compose
alert messages, etc.
setNotFired
protected void setNotFired()
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.