org.rhq.core.domain.alert
Class Alert
java.lang.Object
org.rhq.core.domain.alert.Alert
- All Implemented Interfaces:
- Serializable
public class Alert
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Constructor Summary |
Alert()
Creates a new alert. |
Alert(AlertDefinition alertDefinition,
long ctime)
Creates a new alert with the specified definition and creation time. |
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
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 definitionctime
- the creation time
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.