org.opennms.netmgt.threshd
Class BaseThresholdDefConfigWrapper
java.lang.Object
org.opennms.netmgt.threshd.BaseThresholdDefConfigWrapper
- Direct Known Subclasses:
- ExpressionConfigWrapper, ThresholdConfigWrapper
public abstract class BaseThresholdDefConfigWrapper
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseThresholdDefConfigWrapper
protected BaseThresholdDefConfigWrapper(org.opennms.netmgt.config.threshd.Basethresholddef baseDef)
getConfigWrapper
public static BaseThresholdDefConfigWrapper getConfigWrapper(org.opennms.netmgt.config.threshd.Basethresholddef baseDef)
throws ThresholdExpressionException
- Throws:
ThresholdExpressionException
getDatasourceExpression
public abstract java.lang.String getDatasourceExpression()
- Returns:
- a descriptive string for the data source - typically either a data source name, or an expression of data source names
getRequiredDatasources
public abstract java.util.Collection<java.lang.String> getRequiredDatasources()
- Returns the names of the datasources required to evaluate this threshold
- Returns:
- Collection of the names of datasources
evaluate
public abstract double evaluate(java.util.Map<java.lang.String,java.lang.Double> values)
throws ThresholdExpressionException
- Evaluate the threshold expression/datasource in terms of the named values supplied, and return that value
- Parameters:
values - named values to use in evaluating the expression/data source
- Returns:
- the value of the evaluated expression
- Throws:
ThresholdExpressionException
getDsType
public java.lang.String getDsType()
getDsLabel
public java.lang.String getDsLabel()
getRearm
public double getRearm()
getTrigger
public int getTrigger()
getType
public java.lang.String getType()
getValue
public double getValue()
hasRearm
public boolean hasRearm()
hasTrigger
public boolean hasTrigger()
hasValue
public boolean hasValue()
getTriggeredUEI
public java.lang.String getTriggeredUEI()
getRearmedUEI
public java.lang.String getRearmedUEI()
Copyright © 2007. All Rights Reserved.