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.Object
Abstract BaseThresholdDefConfigWrapper class.
- Author:
- Jeff Gehlbach, Craig Miskell
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseThresholdDefConfigWrapper(Basethresholddef baseDef)
Constructor for BaseThresholdDefConfigWrapper.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(ThresholdDefVisitor thresholdDefVisitor)
boolean
equals(java.lang.Object obj)
Basethresholddef
getBasethresholddef()
getBasethresholddefstatic BaseThresholdDefConfigWrapper
getConfigWrapper(Basethresholddef baseDef)
getConfigWrapperabstract java.lang.String
getDatasourceExpression()
getDatasourceExpressionjava.util.Optional<java.lang.String>
getDsLabel()
getDsLabeljava.lang.String
getDsType()
getDsTypejava.util.List<java.lang.String>
getFilterDatasources()
Returns the names of the datasources required from the resource filtersjava.lang.Double
getRearm()
getRearmjava.util.Optional<java.lang.String>
getRearmedUEI()
getRearmedUEIjava.lang.String
getRearmString()
abstract java.util.Collection<java.lang.String>
getRequiredDatasources()
Returns the names of the datasources required to evaluate this thresholdjava.lang.Integer
getTrigger()
getTriggerjava.util.Optional<java.lang.String>
getTriggeredUEI()
getTriggeredUEIjava.lang.String
getTriggerString()
ThresholdType
getType()
getTypejava.lang.Double
getValue()
getValuejava.lang.String
getValueString()
int
hashCode()
boolean
hasRearm()
hasRearmboolean
hasTrigger()
hasTriggerboolean
hasValue()
hasValueThresholdEvaluatorState.ThresholdValues
interpolateThresholdValues(Scope scope)
void
merge(BaseThresholdDefConfigWrapper threshold)
merge
-
-
-
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 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
String
object.
-
getDsLabel
public java.util.Optional<java.lang.String> getDsLabel()
getDsLabel
- Returns:
- a
String
object.
-
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
String
object.
-
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
String
object.
-
getRearmedUEI
public java.util.Optional<java.lang.String> getRearmedUEI()
getRearmedUEI
- Returns:
- a
String
object.
-
getBasethresholddef
public Basethresholddef getBasethresholddef()
getBasethresholddef
- Returns:
- a
Basethresholddef
object.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.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)
-
-