public static class ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange extends AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
ThresholdEvaluatorState.Status, ThresholdEvaluatorState.ThresholdValues, ThresholdEvaluatorState.ValueStatus
FORMATED_NAN, fst, state, thresholdingSession
Constructor and Description |
---|
ThresholdEvaluatorStateRearmingAbsoluteChange(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
|
String |
getType() |
protected void |
initializeState() |
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 ThresholdEvaluatorStateRearmingAbsoluteChange(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
protected void initializeState()
initializeState
in class AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
public String getType()
public BaseThresholdDefConfigWrapper getThresholdConfig()
ThresholdEvaluatorState
getThresholdConfig
BaseThresholdDefConfigWrapper
object.public ThresholdEvaluatorState.Status evaluateAfterFetch(double dsValue, ThresholdEvaluatorState.ThresholdValues thresholdValues)
evaluateAfterFetch
in class AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
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.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
Copyright © 2021. All rights reserved.