Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.events
Class AlertAuxLogProvider

java.lang.Object
  extended by org.hyperic.util.HypericEnum
      extended by org.hyperic.hq.events.AlertAuxLogProvider
All Implemented Interfaces:
java.io.Serializable, JSON
Direct Known Subclasses:
GalertAuxLogProvider, MetricAuxLogProvider, ResourceAuxLogProvider

public abstract class AlertAuxLogProvider
extends HypericEnum

Abstracts the location of the source of auxillary log information.

See Also:
Serialized Form

Constructor Summary
protected AlertAuxLogProvider(int code, java.lang.String desc, java.lang.String propLocale, java.util.ResourceBundle bundle)
           
 
Method Summary
abstract  void deleteAll(GalertDef def)
          Delete any auxillary logs associated with the specified auxLogId
static java.util.Collection findAll()
           
static AlertAuxLogProvider findByCode(int code)
           
abstract  AlertAuxLog load(int auxLogId, long timestamp, java.lang.String description)
          Load a provider-specific AlertAuxLog
abstract  void save(int auxLogId, AlertAuxLog log)
          Save an auxillary log (log) to the DB.
 
Methods inherited from class org.hyperic.util.HypericEnum
findByCode, findByDescription, getAll, getByCode, getCode, getDescription, getJsonName, getValue, toJSON, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlertAuxLogProvider

protected AlertAuxLogProvider(int code,
                              java.lang.String desc,
                              java.lang.String propLocale,
                              java.util.ResourceBundle bundle)
Method Detail

findByCode

public static AlertAuxLogProvider findByCode(int code)

load

public abstract AlertAuxLog load(int auxLogId,
                                 long timestamp,
                                 java.lang.String description)
Load a provider-specific AlertAuxLog

Parameters:
auxLogId - ID of the auxillary log to which to load aux info for

save

public abstract void save(int auxLogId,
                          AlertAuxLog log)
Save an auxillary log (log) to the DB. This aux log is tied to a real log, as specified by the auxLogId. For the time being, this auxLogId specifies a GalertAuxLog


deleteAll

public abstract void deleteAll(GalertDef def)
Delete any auxillary logs associated with the specified auxLogId


findAll

public static java.util.Collection findAll()

Hyperic HQ Plugin API v. 4.4.0.2

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