|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.threshd.BaseThresholdDefConfigWrapper
org.opennms.netmgt.threshd.ThresholdConfigWrapper
public class ThresholdConfigWrapper
ThresholdConfigWrapper class.
| Constructor Summary | |
|---|---|
ThresholdConfigWrapper(Threshold threshold)
Constructor for ThresholdConfigWrapper. |
|
| Method Summary | |
|---|---|
double |
evaluate(Map<String,Double> values)
Evaluate the threshold expression/datasource in terms of the named values supplied, and return that value |
String |
getDatasourceExpression()
getDatasourceExpression |
Collection<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, getRearm, getRearmedUEI, getTrigger, getTriggeredUEI, getType, getValue, hashCode, hasRearm, hasTrigger, hasValue, identical, merge |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThresholdConfigWrapper(Threshold threshold)
Constructor for ThresholdConfigWrapper.
threshold - a Threshold object.| Method Detail |
|---|
public String getDatasourceExpression()
getDatasourceExpression
getDatasourceExpression in class BaseThresholdDefConfigWrapperpublic Collection<String> getRequiredDatasources()
getRequiredDatasources in class BaseThresholdDefConfigWrapper
public double evaluate(Map<String,Double> values)
throws ThresholdExpressionException
evaluate in class BaseThresholdDefConfigWrappervalues - named values to use in evaluating the expression/data source
ThresholdExpressionException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||