Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.galerts.processor
Class Gtrigger

java.lang.Object
  extended by 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.


Constructor Summary
Gtrigger()
           
 
Method Summary
protected  java.lang.String getAlertDefName()
           
abstract  java.util.Set getInterestedEvents()
           
protected  ExecutionStrategy getStrategy()
           
abstract  void processEvent(Zevent event)
           
protected  void setFired(FireReason reason)
          Called by the subclass to fire based on the passed reason.
abstract  void setGroup(ResourceGroup g)
           
protected  void setNotFired()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gtrigger

public Gtrigger()
Method Detail

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()

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.