public static class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow extends AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow.State>
ThresholdEvaluatorState.Status, ThresholdEvaluatorState.ThresholdValues, ThresholdEvaluatorState.ValueStatusFORMATED_NAN, fst, state, thresholdingSession| Constructor and Description |
|---|
ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold,
ThresholdingSession thresholdingSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStateBeforePersist() |
ThresholdEvaluatorState.Status |
evaluateAfterFetch(double dsValue,
ThresholdEvaluatorState.ThresholdValues thresholdValues) |
ThresholdEvaluatorState |
getCleanClone()
Returns a "clean" (armed, non-triggered) clone of this object
|
Event |
getEventForState(ThresholdEvaluatorState.Status status,
Date date,
double dsValue,
ThresholdEvaluatorState.ThresholdValues thresholdValues,
CollectionResourceWrapper resource)
getEventForState
|
BaseThresholdDefConfigWrapper |
getThresholdConfig()
getThresholdConfig
|
protected void |
initializeState() |
protected boolean |
isRearmExceeded(double dsValue) |
protected boolean |
isRearmExceeded(double dsValue,
Double rearm) |
protected boolean |
isThresholdExceeded(double dsValue) |
protected boolean |
isThresholdExceeded(double dsValue,
Double value) |
protected boolean |
isTriggerCountExceeded() |
protected boolean |
isTriggerCountExceeded(Integer trigger) |
boolean |
isTriggered()
Return true if current state is TRIGGERED
|
clearState, createBasicEvent, evaluate, evaluate, evaluate, evaluate, formatValue, getThresholdingSession, markDirty, reinitialize, setInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluatepublic ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
protected void initializeState()
initializeState in class AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow.State>public BaseThresholdDefConfigWrapper getThresholdConfig()
ThresholdEvaluatorStategetThresholdConfig
BaseThresholdDefConfigWrapper object.public ThresholdEvaluatorState.Status evaluateAfterFetch(double dsValue, ThresholdEvaluatorState.ThresholdValues thresholdValues)
evaluateAfterFetch in class AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow.State>protected boolean isThresholdExceeded(double dsValue,
Double value)
protected boolean isThresholdExceeded(double dsValue)
protected boolean isRearmExceeded(double dsValue,
Double rearm)
protected boolean isRearmExceeded(double dsValue)
protected boolean isTriggerCountExceeded(Integer trigger)
protected boolean isTriggerCountExceeded()
public Event getEventForState(ThresholdEvaluatorState.Status status, Date date, double dsValue, ThresholdEvaluatorState.ThresholdValues thresholdValues, CollectionResourceWrapper resource)
ThresholdEvaluatorStategetEventForState
status - a ThresholdEvaluatorState.Status object.date - a Date object.dsValue - a double.resource - a CollectionResourceWrapper object. @return a Event object.public ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorStateThresholdEvaluatorState object.public boolean isTriggered()
ThresholdEvaluatorStatepublic void clearStateBeforePersist()
clearStateBeforePersist in class AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow.State>Copyright © 2022. All rights reserved.