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