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 java.lang.ObjectAbstract BaseThresholdDefConfigWrapper class.
- Author:
- Jeff Gehlbach, Craig Miskell
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseThresholdDefConfigWrapper(Basethresholddef baseDef)Constructor for BaseThresholdDefConfigWrapper.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaccept(ThresholdDefVisitor thresholdDefVisitor)booleanequals(java.lang.Object obj)BasethresholddefgetBasethresholddef()getBasethresholddefstatic BaseThresholdDefConfigWrappergetConfigWrapper(Basethresholddef baseDef)getConfigWrapperabstract java.lang.StringgetDatasourceExpression()getDatasourceExpressionjava.util.Optional<java.lang.String>getDsLabel()getDsLabeljava.lang.StringgetDsType()getDsTypejava.util.List<java.lang.String>getFilterDatasources()Returns the names of the datasources required from the resource filtersjava.lang.DoublegetRearm()getRearmjava.util.Optional<java.lang.String>getRearmedUEI()getRearmedUEIjava.lang.StringgetRearmString()abstract java.util.Collection<java.lang.String>getRequiredDatasources()Returns the names of the datasources required to evaluate this thresholdjava.lang.IntegergetTrigger()getTriggerjava.util.Optional<java.lang.String>getTriggeredUEI()getTriggeredUEIjava.lang.StringgetTriggerString()ThresholdTypegetType()getTypejava.lang.DoublegetValue()getValuejava.lang.StringgetValueString()inthashCode()booleanhasRearm()hasRearmbooleanhasTrigger()hasTriggerbooleanhasValue()hasValueThresholdEvaluatorState.ThresholdValuesinterpolateThresholdValues(Scope scope)voidmerge(BaseThresholdDefConfigWrapper threshold)merge
-
-
-
Constructor Detail
-
BaseThresholdDefConfigWrapper
protected BaseThresholdDefConfigWrapper(Basethresholddef baseDef)
Constructor for BaseThresholdDefConfigWrapper.
- Parameters:
baseDef- aBasethresholddefobject.
-
-
Method Detail
-
getConfigWrapper
public static BaseThresholdDefConfigWrapper getConfigWrapper(Basethresholddef baseDef) throws ThresholdExpressionException
getConfigWrapper
- Parameters:
baseDef- aBasethresholddefobject.- Returns:
- a
BaseThresholdDefConfigWrapperobject. - Throws:
ThresholdExpressionException- if any.
-
getFilterDatasources
public java.util.List<java.lang.String> getFilterDatasources()
Returns the names of the datasources required from the resource filters- Returns:
- Collection of the names of datasources
-
getDatasourceExpression
public abstract java.lang.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 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
-
getDsType
public java.lang.String getDsType()
getDsType
- Returns:
- a
Stringobject.
-
getDsLabel
public java.util.Optional<java.lang.String> getDsLabel()
getDsLabel
- Returns:
- a
Stringobject.
-
getRearm
public java.lang.Double getRearm()
getRearm
- Returns:
- a Double.
-
getRearmString
public java.lang.String getRearmString()
-
getTrigger
public java.lang.Integer getTrigger()
getTrigger
- Returns:
- a Integer.
-
getTriggerString
public java.lang.String getTriggerString()
-
getType
public ThresholdType getType()
getType
- Returns:
- a
Stringobject.
-
getValue
public java.lang.Double getValue()
getValue
- Returns:
- a Double.
-
getValueString
public java.lang.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.
-
getTriggeredUEI
public java.util.Optional<java.lang.String> getTriggeredUEI()
getTriggeredUEI
- Returns:
- a
Stringobject.
-
getRearmedUEI
public java.util.Optional<java.lang.String> getRearmedUEI()
getRearmedUEI
- Returns:
- a
Stringobject.
-
getBasethresholddef
public Basethresholddef getBasethresholddef()
getBasethresholddef
- Returns:
- a
Basethresholddefobject.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
merge
public void merge(BaseThresholdDefConfigWrapper threshold)
merge
- Parameters:
threshold- aBaseThresholdDefConfigWrapperobject.
-
accept
public abstract void accept(ThresholdDefVisitor thresholdDefVisitor)
-
interpolateThresholdValues
public ThresholdEvaluatorState.ThresholdValues interpolateThresholdValues(Scope scope)
-
-