org.rhq.core.domain.alert
Class AlertConditionLog
java.lang.Object
org.rhq.core.domain.alert.AlertConditionLog
- All Implemented Interfaces:
- Serializable
public class AlertConditionLog
- extends Object
- implements Serializable
A log record for a triggered alert condition.
- See Also:
- Serialized Form
QUERY_FIND_UNMATCHED_LOG_BY_ALERT_CONDITION_ID
public static final String QUERY_FIND_UNMATCHED_LOG_BY_ALERT_CONDITION_ID
- See Also:
- Constant Field Values
QUERY_FIND_UNMATCHED_LOGS_BY_ALERT_DEFINITION_ID
public static final String QUERY_FIND_UNMATCHED_LOGS_BY_ALERT_DEFINITION_ID
- See Also:
- Constant Field Values
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_DELETE_UNMATCHED_BY_ALERT_DEFINITION_ID
public static final String QUERY_DELETE_UNMATCHED_BY_ALERT_DEFINITION_ID
- See Also:
- Constant Field Values
QUERY_NATIVE_TRUNCATE_SQL
public static final String QUERY_NATIVE_TRUNCATE_SQL
- See Also:
- Constant Field Values
MAX_LOG_LENGTH
public static final int MAX_LOG_LENGTH
- See Also:
- Constant Field Values
AlertConditionLog
protected AlertConditionLog()
- Creates a new alert condition log record. (required by EJB3 spec, but not used)
AlertConditionLog
public AlertConditionLog(AlertCondition cond,
long ctime)
- Creates a new log record for the specified alert condition. The alert that triggered the condition will be filled
in later by a separate out-of-band process that ensures all requisite conditions have been satisfied on the
corresponding alert.
- Parameters:
cond
- condition that is being loggedctime
- the time in millis when this condition was known to be true
getId
public int getId()
getCtime
public long getCtime()
setCtime
public void setCtime(long ctime)
getValue
public String getValue()
setValue
public void setValue(String value)
getAlert
public Alert getAlert()
setAlert
public void setAlert(Alert alert)
getCondition
public AlertCondition getCondition()
setCondition
public void setCondition(AlertCondition condition)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.