public static class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow extends AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow.State>
ThresholdEvaluatorState.Status, ThresholdEvaluatorState.ThresholdValues, ThresholdEvaluatorState.ValueStatus
FORMATED_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, setInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate
public ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
protected void initializeState()
initializeState
in class AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow.State>
public BaseThresholdDefConfigWrapper getThresholdConfig()
ThresholdEvaluatorState
getThresholdConfig
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)
ThresholdEvaluatorState
getEventForState
status
- a ThresholdEvaluatorState.Status
object.date
- a Date
object.dsValue
- a double.resource
- a CollectionResourceWrapper
object. @return a Event
object.public ThresholdEvaluatorState getCleanClone()
ThresholdEvaluatorState
ThresholdEvaluatorState
object.public boolean isTriggered()
ThresholdEvaluatorState
public void clearStateBeforePersist()
clearStateBeforePersist
in class AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow.State>
Copyright © 2021. All rights reserved.