org.opennms.netmgt.threshd
Class BaseThresholdDefConfigWrapper

java.lang.Object
  extended by org.opennms.netmgt.threshd.BaseThresholdDefConfigWrapper
Direct Known Subclasses:
ExpressionConfigWrapper, ThresholdConfigWrapper

public abstract class BaseThresholdDefConfigWrapper
extends java.lang.Object


Constructor Summary
protected BaseThresholdDefConfigWrapper(org.opennms.netmgt.config.threshd.Basethresholddef baseDef)
           
 
Method Summary
abstract  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
static BaseThresholdDefConfigWrapper getConfigWrapper(org.opennms.netmgt.config.threshd.Basethresholddef baseDef)
           
abstract  java.lang.String getDatasourceExpression()
           
 java.lang.String getDsLabel()
           
 java.lang.String getDsType()
           
 double getRearm()
           
 java.lang.String getRearmedUEI()
           
abstract  java.util.Collection<java.lang.String> getRequiredDatasources()
          Returns the names of the datasources required to evaluate this threshold
 int getTrigger()
           
 java.lang.String getTriggeredUEI()
           
 java.lang.String getType()
           
 double getValue()
           
 boolean hasRearm()
           
 boolean hasTrigger()
           
 boolean hasValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseThresholdDefConfigWrapper

protected BaseThresholdDefConfigWrapper(org.opennms.netmgt.config.threshd.Basethresholddef baseDef)
Method Detail

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.