org.rhq.core.domain.alert
Class AlertDefinition
java.lang.Object
org.rhq.core.domain.alert.AlertDefinition
- All Implemented Interfaces:
- Serializable
public class AlertDefinition
- extends Object
- implements Serializable
- See Also:
- Serialized Form
QUERY_FIND_ALL
public static final String QUERY_FIND_ALL
- See Also:
- Constant Field Values
QUERY_FIND_ALL_BY_RECOVERY_DEFINITION_ID
public static final String QUERY_FIND_ALL_BY_RECOVERY_DEFINITION_ID
- See Also:
- Constant Field Values
QUERY_FIND_BY_ALERT_TEMPLATE_ID
public static final String QUERY_FIND_BY_ALERT_TEMPLATE_ID
- See Also:
- Constant Field Values
QUERY_FIND_BY_GROUP_ALERT_DEFINITION_ID
public static final String QUERY_FIND_BY_GROUP_ALERT_DEFINITION_ID
- See Also:
- Constant Field Values
QUERY_FIND_RESOURCE_IDS_NEEDING_TEMPLATE_APPLICATION
public static final String QUERY_FIND_RESOURCE_IDS_NEEDING_TEMPLATE_APPLICATION
- See Also:
- Constant Field Values
QUERY_FIND_OPTION_ITEMS_BY_RESOURCE
public static final String QUERY_FIND_OPTION_ITEMS_BY_RESOURCE
- See Also:
- Constant Field Values
QUERY_FIND_OPTION_ITEMS_BY_GROUP
public static final String QUERY_FIND_OPTION_ITEMS_BY_GROUP
- See Also:
- Constant Field Values
QUERY_FIND_BY_RESOURCE
public static final String QUERY_FIND_BY_RESOURCE
- See Also:
- Constant Field Values
QUERY_FIND_BY_RESOURCE_TYPE
public static final String QUERY_FIND_BY_RESOURCE_TYPE
- See Also:
- Constant Field Values
QUERY_FIND_BY_RESOURCE_GROUP
public static final String QUERY_FIND_BY_RESOURCE_GROUP
- See Also:
- Constant Field Values
QUERY_DELETE_BY_RESOURCES
public static final String QUERY_DELETE_BY_RESOURCES
- See Also:
- Constant Field Values
QUERY_FIND_UNUSED_DEFINITION_IDS
public static final String QUERY_FIND_UNUSED_DEFINITION_IDS
- See Also:
- Constant Field Values
QUERY_FIND_DEFINITION_ID_BY_CONDITION_ID
public static final String QUERY_FIND_DEFINITION_ID_BY_CONDITION_ID
- See Also:
- Constant Field Values
QUERY_IS_ENABLED
public static final String QUERY_IS_ENABLED
- See Also:
- Constant Field Values
QUERY_IS_TEMPLATE
public static final String QUERY_IS_TEMPLATE
- See Also:
- Constant Field Values
QUERY_IS_GROUP_ALERT_DEFINITION
public static final String QUERY_IS_GROUP_ALERT_DEFINITION
- See Also:
- Constant Field Values
QUERY_IS_RESOURCE_ALERT_DEFINITION
public static final String QUERY_IS_RESOURCE_ALERT_DEFINITION
- See Also:
- Constant Field Values
QUERY_UPDATE_SET_DELETED
public static final String QUERY_UPDATE_SET_DELETED
- See Also:
- Constant Field Values
QUERY_UPDATE_SET_ENABLED
public static final String QUERY_UPDATE_SET_ENABLED
- See Also:
- Constant Field Values
QUERY_UPDATE_SET_DISABLED
public static final String QUERY_UPDATE_SET_DISABLED
- See Also:
- Constant Field Values
QUERY_UPDATE_SET_PARENTS_NULL
public static final String QUERY_UPDATE_SET_PARENTS_NULL
- See Also:
- Constant Field Values
QUERY_FIND_RESOURCE_IDS_NEEDING_GROUP_APPLICATION
public static final String QUERY_FIND_RESOURCE_IDS_NEEDING_GROUP_APPLICATION
- 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
AlertDefinition
public AlertDefinition()
- Creates a new alert definition.
AlertDefinition
public AlertDefinition(AlertDefinition alertDef)
- Creates a skeletal copy of the specified alert definition.
- Parameters:
alertDef
- the alert definition to be copied
update
public void update(AlertDefinition alertDef)
getId
public int getId()
setId
public void setId(int id)
getName
public String getName()
setName
public void setName(String name)
getCtime
public long getCtime()
setCtime
public void setCtime(long ctime)
getMtime
public long getMtime()
setMtime
public void setMtime(long mtime)
getParentId
public Integer getParentId()
setParentId
public void setParentId(Integer parentId)
getGroupAlertDefinition
public AlertDefinition getGroupAlertDefinition()
setGroupAlertDefinition
public void setGroupAlertDefinition(AlertDefinition groupAlertDefinition)
getResource
public Resource getResource()
setResource
public void setResource(Resource resource)
getResourceGroup
public ResourceGroup getResourceGroup()
setResourceGroup
public void setResourceGroup(ResourceGroup resourceGroup)
getResourceType
public ResourceType getResourceType()
setResourceType
public void setResourceType(ResourceType resourceType)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getPriority
public AlertPriority getPriority()
setPriority
public void setPriority(AlertPriority priority)
getEnabled
public boolean getEnabled()
setEnabled
public void setEnabled(boolean enabled)
getAlertDampening
public AlertDampening getAlertDampening()
setAlertDampening
public void setAlertDampening(AlertDampening alertDampening)
getWillRecover
public boolean getWillRecover()
setWillRecover
public void setWillRecover(boolean willRecover)
getNotifyFiltered
public boolean getNotifyFiltered()
setNotifyFiltered
public void setNotifyFiltered(boolean notifyFiltered)
getControlFiltered
public boolean getControlFiltered()
setControlFiltered
public void setControlFiltered(boolean controlFiltered)
getRecoveryId
public Integer getRecoveryId()
setRecoveryId
public void setRecoveryId(Integer actOnTriggerId)
getDeleted
public boolean getDeleted()
setDeleted
public void setDeleted(boolean deleted)
isReadOnly
public boolean isReadOnly()
- A definition is "read-only" with respect to updates that come from the group/template level.
If "read only" is true, then changes to the parent group/template alert definition will not
change this resource alert def. If read only is false, changes to the parent propagate to the
child resource alert.
- Returns:
- read only flag
setReadOnly
public void setReadOnly(boolean readOnly)
getConditionExpression
public BooleanExpression getConditionExpression()
setConditionExpression
public void setConditionExpression(BooleanExpression conditionExpression)
getConditions
public Set<AlertCondition> getConditions()
setConditions
public void setConditions(Set<AlertCondition> conditions)
addCondition
public void addCondition(AlertCondition condition)
removeAllConditions
public void removeAllConditions()
getAlerts
public Set<Alert> getAlerts()
addAlert
public void addAlert(Alert alert)
getAlertNotifications
public List<AlertNotification> getAlertNotifications()
setAlertNotifications
public void setAlertNotifications(List<AlertNotification> alertNotifications)
addAlertNotification
public void addAlertNotification(AlertNotification alertNotification)
removeAllAlertNotifications
public void removeAllAlertNotifications()
getAlertDampeningEvents
public Set<AlertDampeningEvent> getAlertDampeningEvents()
removeAlertDampeningEvent
public boolean removeAlertDampeningEvent(AlertDampeningEvent event)
calculateContext
public void calculateContext()
setContext
public void setContext(AlertDefinitionContext context)
getContext
public AlertDefinitionContext getContext()
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.