|
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.NoneStrategy
public class NoneStrategy
This strategy will fire only when all of the triggers are 'not fired'.
| Constructor Summary | |
|---|---|
NoneStrategy()
|
|
| 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 NoneStrategy()
| Method Detail |
|---|
public void configure(GalertDefPartition partition,
java.lang.String defName,
java.util.List triggers)
ExecutionStrategy
configure in interface ExecutionStrategypublic GalertDefPartition getPartition()
getPartition in interface ExecutionStrategypublic void setDefinitionName(java.lang.String name)
ExecutionStrategy
setDefinitionName in interface ExecutionStrategypublic 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 ExecutionStrategypublic ExecutionReason shouldFire()
ExecutionStrategy
shouldFire in interface ExecutionStrategy
public void triggerFired(Gtrigger trigger,
FireReason reason)
ExecutionStrategy
triggerFired in interface ExecutionStrategypublic 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 | ||||||||