org.rhq.core.domain.alert
Class Alert

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

public class Alert
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String QUERY_ACKNOWLEDGE_ALL
           
static String QUERY_ACKNOWLEDGE_BY_IDS
           
static String QUERY_ACKNOWLEDGE_BY_RESOURCE_GROUPS
           
static String QUERY_ACKNOWLEDGE_BY_RESOURCES
           
static String QUERY_CHECK_PERMISSION_BY_IDS
           
static String QUERY_DELETE_ALL
           
static String QUERY_DELETE_BY_CTIME
           
static String QUERY_DELETE_BY_IDS
           
static String QUERY_DELETE_BY_RESOURCE_GROUPS
           
static String QUERY_DELETE_BY_RESOURCE_TEMPLATE
           
static String QUERY_DELETE_BY_RESOURCES
           
static String QUERY_FIND_ALL_COMPOSITES
           
static String QUERY_FIND_ALL_COMPOSITES_ADMIN
           
static String QUERY_FIND_BY_MEAS_DEF_ID_AND_AUTOGROUP
           
static String QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCE
           
static String QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCEGROUP
           
static String QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCES
           
static String QUERY_FIND_BY_MEASUREMENT_DEFINITION_ID
           
static String QUERY_GET_ALERT_COUNT_FOR_SCHEDULES
           
static String QUERY_NATIVE_TRUNCATE_SQL
           
static String QUERY_RETURN_EXISTING_IDS
           
 
Constructor Summary
Alert()
          Creates a new alert.
Alert(AlertDefinition alertDefinition, long ctime)
          Creates a new alert with the specified definition and creation time.
 
Method Summary
 void addAlertNotificatinLog(AlertNotificationLog log)
           
 void addConditionLog(AlertConditionLog conditionLog)
           
 boolean equals(Object obj)
           
 Long getAcknowledgeTime()
           
 String getAcknowledgingSubject()
           
 AlertDefinition getAlertDefinition()
           
 List<AlertNotificationLog> getAlertNotificationLogs()
           
 Set<AlertConditionLog> getConditionLogs()
           
 long getCtime()
           
 int getId()
           
 AlertDefinition getRecoveryAlertDefinition()
           
 Integer getRecoveryId()
           
 boolean getWillRecover()
           
 int hashCode()
           
 void setAcknowledgeTime(Long acknowledgeTime)
           
 void setAcknowledgingSubject(String acknowledgingSubject)
           
 void setAlertDefinition(AlertDefinition alertDefinition)
           
 void setAlertNotificationLogs(List<AlertNotificationLog> alertNotificationLogs)
           
 void setRecoveryId(Integer actOnTriggerId)
           
 void setWillRecover(boolean willRecover)
           
 String toSimpleString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_BY_MEASUREMENT_DEFINITION_ID

public static final String QUERY_FIND_BY_MEASUREMENT_DEFINITION_ID
See Also:
Constant Field Values

QUERY_DELETE_BY_CTIME

public static final String QUERY_DELETE_BY_CTIME
See Also:
Constant Field Values

QUERY_RETURN_EXISTING_IDS

public static final String QUERY_RETURN_EXISTING_IDS
See Also:
Constant Field Values

QUERY_CHECK_PERMISSION_BY_IDS

public static final String QUERY_CHECK_PERMISSION_BY_IDS
See Also:
Constant Field Values

QUERY_DELETE_ALL

public static final String QUERY_DELETE_ALL
See Also:
Constant Field Values

QUERY_DELETE_BY_IDS

public static final String QUERY_DELETE_BY_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_ACKNOWLEDGE_ALL

public static final String QUERY_ACKNOWLEDGE_ALL
See Also:
Constant Field Values

QUERY_ACKNOWLEDGE_BY_IDS

public static final String QUERY_ACKNOWLEDGE_BY_IDS
See Also:
Constant Field Values

QUERY_ACKNOWLEDGE_BY_RESOURCES

public static final String QUERY_ACKNOWLEDGE_BY_RESOURCES
See Also:
Constant Field Values

QUERY_ACKNOWLEDGE_BY_RESOURCE_GROUPS

public static final String QUERY_ACKNOWLEDGE_BY_RESOURCE_GROUPS
See Also:
Constant Field Values

QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCES

public static final String QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCES
See Also:
Constant Field Values

QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCEGROUP

public static final String QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCEGROUP
See Also:
Constant Field Values

QUERY_FIND_BY_MEAS_DEF_ID_AND_AUTOGROUP

public static final String QUERY_FIND_BY_MEAS_DEF_ID_AND_AUTOGROUP
See Also:
Constant Field Values

QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCE

public static final String QUERY_FIND_BY_MEAS_DEF_ID_AND_RESOURCE
See Also:
Constant Field Values

QUERY_GET_ALERT_COUNT_FOR_SCHEDULES

public static final String QUERY_GET_ALERT_COUNT_FOR_SCHEDULES
See Also:
Constant Field Values

QUERY_NATIVE_TRUNCATE_SQL

public static final String QUERY_NATIVE_TRUNCATE_SQL
See Also:
Constant Field Values

QUERY_FIND_ALL_COMPOSITES

public static final String QUERY_FIND_ALL_COMPOSITES
See Also:
Constant Field Values

QUERY_FIND_ALL_COMPOSITES_ADMIN

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

Alert

public Alert()
Creates a new alert. (required by EJB3 spec, but not used)


Alert

public Alert(AlertDefinition alertDefinition,
             long ctime)
Creates a new alert with the specified definition and creation time.

Parameters:
alertDefinition - the definition
ctime - the creation time
Method Detail

getId

public int getId()

getAlertDefinition

public AlertDefinition getAlertDefinition()

setAlertDefinition

public void setAlertDefinition(AlertDefinition alertDefinition)

getCtime

public long getCtime()

getConditionLogs

public Set<AlertConditionLog> getConditionLogs()

addConditionLog

public void addConditionLog(AlertConditionLog conditionLog)

getAlertNotificationLogs

public List<AlertNotificationLog> getAlertNotificationLogs()

setAlertNotificationLogs

public void setAlertNotificationLogs(List<AlertNotificationLog> alertNotificationLogs)

addAlertNotificatinLog

public void addAlertNotificatinLog(AlertNotificationLog log)

getAcknowledgeTime

public Long getAcknowledgeTime()

setAcknowledgeTime

public void setAcknowledgeTime(Long acknowledgeTime)

getAcknowledgingSubject

public String getAcknowledgingSubject()

setAcknowledgingSubject

public void setAcknowledgingSubject(String acknowledgingSubject)

getWillRecover

public boolean getWillRecover()

setWillRecover

public void setWillRecover(boolean willRecover)

getRecoveryId

public Integer getRecoveryId()

setRecoveryId

public void setRecoveryId(Integer actOnTriggerId)

getRecoveryAlertDefinition

public AlertDefinition getRecoveryAlertDefinition()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toSimpleString

public String toSimpleString()

toString

public String toString()
Overrides:
toString in class Object


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