Package org.opennms.netmgt.threshd
Class ThresholdConfigWrapper
- java.lang.Object
-
- org.opennms.netmgt.threshd.BaseThresholdDefConfigWrapper
-
- org.opennms.netmgt.threshd.ThresholdConfigWrapper
-
public class ThresholdConfigWrapper extends BaseThresholdDefConfigWrapper
ThresholdConfigWrapper class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description ThresholdConfigWrapper(Threshold threshold)
Constructor for ThresholdConfigWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ThresholdDefVisitor thresholdDefVisitor)
double
evaluate(Map<String,Double> values)
String
getDatasourceExpression()
getDatasourceExpressionCollection<String>
getRequiredDatasources()
Returns the names of the datasources required to evaluate this threshold-
Methods inherited from class org.opennms.netmgt.threshd.BaseThresholdDefConfigWrapper
equals, getBasethresholddef, getConfigWrapper, getDsLabel, getDsType, getFilterDatasources, getRearm, getRearmedUEI, getRearmString, getTrigger, getTriggeredUEI, getTriggerString, getType, getValue, getValueString, hashCode, hasRearm, hasTrigger, hasValue, interpolateThresholdValues, merge
-
-
-
-
Method Detail
-
getDatasourceExpression
public String getDatasourceExpression()
getDatasourceExpression
- Specified by:
getDatasourceExpression
in classBaseThresholdDefConfigWrapper
- Returns:
- a descriptive string for the data source - typically either a data source name, or an expression of data source names
-
getRequiredDatasources
public Collection<String> getRequiredDatasources()
Returns the names of the datasources required to evaluate this threshold- Specified by:
getRequiredDatasources
in classBaseThresholdDefConfigWrapper
- Returns:
- Collection of the names of datasources
-
accept
public void accept(ThresholdDefVisitor thresholdDefVisitor)
- Specified by:
accept
in classBaseThresholdDefConfigWrapper
-
-