GalertProcessor (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.galerts.processor.GalertProcessor 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.processor
Class GalertProcessor

    java.lang.Object
      org.hyperic.hq.galerts.processor.GalertProcessor

    public class GalertProcessor

extends java.lang.Object

This class acts as the central manager for all in-memory alerting. It performs the following functions: - Manages lists of active alert definitions - Reloads defs as configurations change - Listens to events from the zevents subsystem - Listens to group membership events from the grouping subsystem In the future, it will also: - Come online when a 'master' alerting node is specified in High Availability Since the galerting subsystem is broken up into 2 pieces, the persisted objects and the runtime objects, the 2 are split into separate packages.

Method Summary
`void` | `alertDefDeleted(java.lang.Integer defId)` Call this if an alert-def is deleted.
`void` | `alertDefUpdated(GalertDef def, java.lang.String newName)` Called when primitive information has been updated which doens't require a reload of the entire definition.
`static GalertProcessor` | `getInstance()`
`void` | `loadReloadOrUnload(GalertDef def)` Call this if an alert-def is created or updated.
`void` | `startupInitialize(java.util.Collection galertDefs)` Called to initialize the state of the processor.
`boolean` | `validateAlertDef(GalertDef def)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### alertDefUpdated

    public void alertDefUpdated(GalertDef def,
                                java.lang.String newName)

  Called when primitive information has been updated which doens't require a reload of the entire definition.

### loadReloadOrUnload

    public void loadReloadOrUnload(GalertDef def)

  Call this if an alert-def is created or updated. The internal state of the processor will be updated after the current transaction successfully commits. This method should be called for major changes to the definition, such as conditions, enablement, etc., since it fully unloads the existing definition and reloads it (meaning that internal state of the triggers, such as previously processed metrics, etc. will be reset)

### alertDefDeleted

    public void alertDefDeleted(java.lang.Integer defId)

  Call this if an alert-def is deleted. After the transaction is successfully committed, it will be removed from the processor.

### startupInitialize

    public void startupInitialize(java.util.Collection galertDefs)

  Called to initialize the state of the processor. This should be called during application startup with all the alert definitions in the system.

### validateAlertDef

    public boolean validateAlertDef(GalertDef def)

### getInstance

    public static GalertProcessor getInstance()

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.