|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.threshd.ThresholdEntity
public final class ThresholdEntity
Wraps the castor created org.opennms.netmgt.config.threshd.Threshold class and provides the ability to track threshold exceeded occurrences.
| Constructor Summary | |
|---|---|
ThresholdEntity()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addThreshold(BaseThresholdDefConfigWrapper threshold)
|
ThresholdEntity |
clone()
Returns a copy of this ThresholdEntity object. |
java.util.List<org.opennms.netmgt.xml.event.Event> |
evaluateAndCreateEvents(java.util.Map<java.lang.String,java.lang.Double> values,
java.util.Date date)
Evaluates the threshold in light of the provided datasource value and create any events for thresholds. |
java.lang.Double |
fetchLastValue(LatencyInterface latIface,
LatencyParameters latParms)
|
java.lang.String |
getDataSourceExpression()
Get datasource name |
java.lang.String |
getDatasourceLabel()
Get datasource Label |
java.lang.String |
getDatasourceType()
Get datasource type |
java.util.Collection<java.lang.String> |
getRequiredDatasources()
Returns the names of the dataousrces required to evaluate this threshold entity |
static java.util.List<ThresholdEvaluator> |
getThresholdEvaluators()
|
java.util.List<ThresholdEvaluatorState> |
getThresholdEvaluatorStates()
|
java.lang.String |
toString()
This method is responsible for returning a String object which represents the content of this ThresholdEntity. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThresholdEntity()
| Method Detail |
|---|
public java.lang.String getDataSourceExpression()
public java.lang.String getDatasourceType()
public java.lang.String getDatasourceLabel()
public java.util.Collection<java.lang.String> getRequiredDatasources()
public ThresholdEntity clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public java.util.List<org.opennms.netmgt.xml.event.Event> evaluateAndCreateEvents(java.util.Map<java.lang.String,java.lang.Double> values,
java.util.Date date)
dsValue - Current value of datasource
public java.lang.Double fetchLastValue(LatencyInterface latIface,
LatencyParameters latParms)
throws ThresholdingException
ThresholdingExceptionpublic void addThreshold(BaseThresholdDefConfigWrapper threshold)
public java.util.List<ThresholdEvaluatorState> getThresholdEvaluatorStates()
public static final java.util.List<ThresholdEvaluator> getThresholdEvaluators()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||