|
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.galerts.strategies.SimpleStrategy
public class SimpleStrategy
This strategy will fire when any of the triggers has fired -- an OR operation.
Constructor Summary | |
---|---|
SimpleStrategy()
|
Method Summary | |
---|---|
void |
configure(GalertDefPartition partition,
java.lang.String defName,
java.util.List triggers)
Inform the strategy about the state in which it is running. |
GalertDefPartition |
getPartition()
|
void |
reset()
Reset the internal state of the execution strategy. |
void |
setDefinitionName(java.lang.String name)
Called when the name of the definition to which the strategy is bound has been changed |
ExecutionReason |
shouldFire()
Determine if the execution strategy should fire. |
void |
triggerFired(Gtrigger trigger,
FireReason reason)
Called when a trigger has fired. |
void |
triggerNotFired(Gtrigger trigger)
Called when a condition is no longer firing (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleStrategy()
Method Detail |
---|
public void configure(GalertDefPartition partition, java.lang.String defName, java.util.List triggers)
ExecutionStrategy
configure
in interface ExecutionStrategy
public GalertDefPartition getPartition()
getPartition
in interface ExecutionStrategy
public void setDefinitionName(java.lang.String name)
ExecutionStrategy
setDefinitionName
in interface ExecutionStrategy
public void reset()
ExecutionStrategy
#configure(String, List)
, only
the internal state (such as time of last fired trigger, etc.)
This method will be invoked after the alert definition has fired and
needs to be reset.
reset
in interface ExecutionStrategy
public ExecutionReason shouldFire()
ExecutionStrategy
shouldFire
in interface ExecutionStrategy
public void triggerFired(Gtrigger trigger, FireReason reason)
ExecutionStrategy
triggerFired
in interface ExecutionStrategy
public void triggerNotFired(Gtrigger trigger)
ExecutionStrategy
triggerNotFired
in interface ExecutionStrategy
|
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 |