org.rhq.core.domain.alert
Class AlertCondition

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

public class AlertCondition
extends Object
implements Serializable

An alert condition (e.g. ActiveThreads > 100) as configured in a JON alert definition.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_BY_RESOURCES
           
 
Constructor Summary
AlertCondition()
          Creates a new alert condition.
AlertCondition(AlertCondition cond)
          Creates a skeletal copy of the specified alert condition.
AlertCondition(AlertDefinition alertDef, AlertConditionCategory type)
           
 
Method Summary
 void addConditionLog(AlertConditionLog condLog)
           
 boolean equals(Object obj)
           
 AlertDefinition getAlertDefinition()
           
 AlertConditionCategory getCategory()
           
 String getComparator()
           
 Set<AlertConditionLog> getConditionLogs()
           
 int getId()
           
 MeasurementDefinition getMeasurementDefinition()
           
 String getName()
           
 String getOption()
           
 Double getThreshold()
           
 Integer getTriggerId()
           
 int hashCode()
           
 void setAlertDefinition(AlertDefinition alertDef)
           
 void setCategory(AlertConditionCategory category)
           
 void setComparator(String comparator)
           
 void setMeasurementDefinition(MeasurementDefinition measurementDefinition)
           
 void setName(String name)
           
 void setOption(String option)
           
 void setThreshold(Double threshold)
           
 void setTriggerId(Integer triggerId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_DELETE_BY_RESOURCES

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

AlertCondition

public AlertCondition()
Creates a new alert condition.


AlertCondition

public AlertCondition(AlertDefinition alertDef,
                      AlertConditionCategory type)

AlertCondition

public AlertCondition(AlertCondition cond)
Creates a skeletal copy of the specified alert condition.

Parameters:
cond - the alert condition to be copied
Method Detail

getId

public int getId()

getCategory

public AlertConditionCategory getCategory()

setCategory

public void setCategory(AlertConditionCategory category)

getMeasurementDefinition

public MeasurementDefinition getMeasurementDefinition()

setMeasurementDefinition

public void setMeasurementDefinition(MeasurementDefinition measurementDefinition)

getName

public String getName()

setName

public void setName(String name)

getComparator

public String getComparator()

setComparator

public void setComparator(String comparator)

getThreshold

public Double getThreshold()

setThreshold

public void setThreshold(Double threshold)

getOption

public String getOption()

setOption

public void setOption(String option)

getTriggerId

public Integer getTriggerId()

setTriggerId

public void setTriggerId(Integer triggerId)

getAlertDefinition

public AlertDefinition getAlertDefinition()

setAlertDefinition

public void setAlertDefinition(AlertDefinition alertDef)

getConditionLogs

public Set<AlertConditionLog> getConditionLogs()

addConditionLog

public void addConditionLog(AlertConditionLog condLog)

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 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.