org.rhq.core.domain.alert.notification
Class AlertNotificationLog

java.lang.Object
  extended by org.rhq.core.domain.alert.notification.AlertNotificationLog
All Implemented Interfaces:
Serializable

public class AlertNotificationLog
extends Object
implements Serializable

A log record for a triggered action and/or notification taken for a fired alert.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_ALL
           
static String QUERY_DELETE_BY_ALERT_CTIME
           
static String QUERY_DELETE_BY_ALERT_IDS
           
static String QUERY_DELETE_BY_RESOURCE_GROUPS
           
static String QUERY_DELETE_BY_RESOURCE_TEMPLATE
           
static String QUERY_DELETE_BY_RESOURCES
           
static String QUERY_NATIVE_TRUNCATE_SQL
           
 
Constructor Summary
protected AlertNotificationLog()
           
  AlertNotificationLog(Alert alert, String senderName, ResultState state, String message)
           
  AlertNotificationLog(Alert alert, String sender, SenderResult senderResult)
           
 
Method Summary
 Alert getAlert()
           
 int getId()
           
 String getMessage()
           
 ResultState getResultState()
           
 String getSender()
           
 String toString()
           
 void trimMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_DELETE_ALL

public static final String QUERY_DELETE_ALL
See Also:
Constant Field Values

QUERY_DELETE_BY_ALERT_IDS

public static final String QUERY_DELETE_BY_ALERT_IDS
See Also:
Constant Field Values

QUERY_DELETE_BY_RESOURCES

public static final String QUERY_DELETE_BY_RESOURCES
See Also:
Constant Field Values

QUERY_DELETE_BY_RESOURCE_TEMPLATE

public static final String QUERY_DELETE_BY_RESOURCE_TEMPLATE
See Also:
Constant Field Values

QUERY_DELETE_BY_RESOURCE_GROUPS

public static final String QUERY_DELETE_BY_RESOURCE_GROUPS
See Also:
Constant Field Values

QUERY_DELETE_BY_ALERT_CTIME

public static final String QUERY_DELETE_BY_ALERT_CTIME
See Also:
Constant Field Values

QUERY_NATIVE_TRUNCATE_SQL

public static final String QUERY_NATIVE_TRUNCATE_SQL
See Also:
Constant Field Values
Constructor Detail

AlertNotificationLog

protected AlertNotificationLog()

AlertNotificationLog

public AlertNotificationLog(Alert alert,
                            String sender,
                            SenderResult senderResult)

AlertNotificationLog

public AlertNotificationLog(Alert alert,
                            String senderName,
                            ResultState state,
                            String message)
Method Detail

trimMessage

public void trimMessage()

getId

public int getId()

getAlert

public Alert getAlert()

getSender

public String getSender()

getResultState

public ResultState getResultState()

getMessage

public String getMessage()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.