NoneStrategy (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.galerts.strategies.NoneStrategy class

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.strategies
Class NoneStrategy

    java.lang.Object
      org.hyperic.hq.galerts.strategies.NoneStrategy

All Implemented Interfaces:
  ExecutionStrategy

    public class NoneStrategy

extends java.lang.Object
implements ExecutionStrategy

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

### NoneStrategy

    public NoneStrategy()

Method Detail

### configure

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

  Description copied from interface: `ExecutionStrategy`
  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.

  Specified by:
    `configure` in interface `ExecutionStrategy`

### getPartition

    public GalertDefPartition getPartition()

  Specified by:
    `getPartition` in interface `ExecutionStrategy`

### setDefinitionName

    public void setDefinitionName(java.lang.String name)

  Description copied from interface: `ExecutionStrategy`
  Called when the name of the definition to which the strategy is bound has been changed

  Specified by:
    `setDefinitionName` in interface `ExecutionStrategy`

### reset

    public void reset()

  Description copied from interface: `ExecutionStrategy`
  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.

  Specified by:
    `reset` in interface `ExecutionStrategy`

### shouldFire

    public ExecutionReason shouldFire()

  Description copied from interface: `ExecutionStrategy`
  Determine if the execution strategy should fire.

  Specified by:
    `shouldFire` in interface `ExecutionStrategy`
  Returns:
    null if the strategy should not fire

### triggerFired

    public void triggerFired(Gtrigger trigger,
                             FireReason reason)

  Description copied from interface: `ExecutionStrategy`
  Called when a trigger has fired.

  Specified by:
    `triggerFired` in interface `ExecutionStrategy`

### triggerNotFired

    public void triggerNotFired(Gtrigger trigger)

  Description copied from interface: `ExecutionStrategy`
  Called when a condition is no longer firing (i.e. its condition is no longer met)

  Specified by:
    `triggerNotFired` in interface `ExecutionStrategy`

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.