Package org.opennms.netmgt.threshd
Class BaseThresholdDefConfigWrapper
- java.lang.Object
-
- org.opennms.netmgt.threshd.BaseThresholdDefConfigWrapper
-
- Direct Known Subclasses:
ExpressionConfigWrapper
,ThresholdConfigWrapper
public abstract class BaseThresholdDefConfigWrapper extends Object
Abstract BaseThresholdDefConfigWrapper class.
- Author:
- Jeff Gehlbach, Craig Miskell
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseThresholdDefConfigWrapper(Basethresholddef baseDef)
Constructor for BaseThresholdDefConfigWrapper.
-
Method Summary
-
-
-
Constructor Detail
-
BaseThresholdDefConfigWrapper
protected BaseThresholdDefConfigWrapper(Basethresholddef baseDef)
Constructor for BaseThresholdDefConfigWrapper.
- Parameters:
baseDef
- aBasethresholddef
object.
-
-
Method Detail
-
getConfigWrapper
public static BaseThresholdDefConfigWrapper getConfigWrapper(Basethresholddef baseDef) throws ThresholdExpressionException
getConfigWrapper
- Parameters:
baseDef
- aBasethresholddef
object.- Returns:
- a
BaseThresholdDefConfigWrapper
object. - Throws:
ThresholdExpressionException
- if any.
-
getFilterDatasources
public List<String> getFilterDatasources()
Returns the names of the datasources required from the resource filters- Returns:
- Collection of the names of datasources
-
getDatasourceExpression
public abstract String getDatasourceExpression()
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 Collection<String> getRequiredDatasources()
Returns the names of the datasources required to evaluate this threshold- Returns:
- Collection of the names of datasources
-
getRearm
public Double getRearm()
getRearm
- Returns:
- a Double.
-
getRearmString
public String getRearmString()
-
getTrigger
public Integer getTrigger()
getTrigger
- Returns:
- a Integer.
-
getTriggerString
public String getTriggerString()
-
getType
public ThresholdType getType()
getType
- Returns:
- a
String
object.
-
getValue
public Double getValue()
getValue
- Returns:
- a Double.
-
getValueString
public String getValueString()
-
hasRearm
public boolean hasRearm()
hasRearm
- Returns:
- a boolean.
-
hasTrigger
public boolean hasTrigger()
hasTrigger
- Returns:
- a boolean.
-
hasValue
public boolean hasValue()
hasValue
- Returns:
- a boolean.
-
getBasethresholddef
public Basethresholddef getBasethresholddef()
getBasethresholddef
- Returns:
- a
Basethresholddef
object.
-
merge
public void merge(BaseThresholdDefConfigWrapper threshold)
merge
- Parameters:
threshold
- aBaseThresholdDefConfigWrapper
object.
-
accept
public abstract void accept(ThresholdDefVisitor thresholdDefVisitor)
-
interpolateThresholdValues
public ThresholdEvaluatorState.ThresholdValues interpolateThresholdValues(Scope scope)
-
-