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
A JON alert definition.
- See Also:
- Serialized Form
QUERY_FIND_ALL
public static final String QUERY_FIND_ALL
- See Also:
- Constant Field Values
QUERY_FIND_ALL_WITH_CONDITIONS
public static final String QUERY_FIND_ALL_WITH_CONDITIONS
- 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_RESOURCE_IDS_WITH_NO_ACTIVE_TEMPLATE_DEFINITION
public static final String QUERY_FIND_RESOURCE_IDS_WITH_NO_ACTIVE_TEMPLATE_DEFINITION
- 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_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_DELETE_BY_RESOURCES
public static final String QUERY_DELETE_BY_RESOURCES
- 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()
getName
public String getName()
setName
public void setName(String name)
getCtime
public long getCtime()
getMtime
public long getMtime()
getParentId
public Integer getParentId()
setParentId
public void setParentId(Integer parentId)
getResource
public Resource getResource()
setResource
public void setResource(Resource resource)
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)
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 Set<AlertNotification> getAlertNotifications()
setAlertNotifications
public void setAlertNotifications(Set<AlertNotification> alertNotifications)
addAlertNotification
public void addAlertNotification(AlertNotification alertNotification)
removeAllAlertNotifications
public void removeAllAlertNotifications()
getOperationDefinition
public OperationDefinition getOperationDefinition()
setOperationDefinition
public void setOperationDefinition(OperationDefinition operationDefinition)
getAlertDampeningEvents
public Set<AlertDampeningEvent> getAlertDampeningEvents()
removeAlertDampeningEvent
public boolean removeAlertDampeningEvent(AlertDampeningEvent event)
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 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.