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(java.util.Map<java.lang.String,java.lang.Double> values)
java.lang.String
getDatasourceExpression()
getDatasourceExpressionjava.util.Collection<java.lang.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 java.lang.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 java.util.Collection<java.lang.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
-
evaluate
public double evaluate(java.util.Map<java.lang.String,java.lang.Double> values)
-
accept
public void accept(ThresholdDefVisitor thresholdDefVisitor)
- Specified by:
accept
in classBaseThresholdDefConfigWrapper
-
-