Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

## org.hyperic.hq.galerts.server.session
Interface ExecutionStrategy

All Known Implementing Classes:
  NoneStrategy, SimpleStrategy

    public interface ExecutionStrategy

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 defName)` 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.

Method Detail

### shouldFire

    ExecutionReason shouldFire()

  Determine if the execution strategy should fire.

  Returns:
    null if the strategy should not fire

### reset

    void reset()

  Reset the internal state of the execution strategy. This should not affect the data setup by `#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.

### configure

    void configure(GalertDefPartition partition,
                   java.lang.String defName,
                   java.util.List triggers)

  Inform the strategy about the state in which it is running. This method will be invoked when the the framework detects a change in configuration of any of the triggers.

### setDefinitionName

    void setDefinitionName(java.lang.String defName)

  Called when the name of the definition to which the strategy is bound has been changed

### triggerFired

    void triggerFired(Gtrigger trigger,
                      FireReason reason)

  Called when a trigger has fired.

### triggerNotFired

    void triggerNotFired(Gtrigger trigger)

  Called when a condition is no longer firing (i.e. its condition is no longer met)

### getPartition

    GalertDefPartition getPartition()

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

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