Package org.opennms.netmgt.threshd
Class ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange
- java.lang.Object
-
- org.opennms.netmgt.threshd.AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
-
- org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange
-
- All Implemented Interfaces:
ReinitializableState
,ThresholdEvaluatorState
- Enclosing class:
- ThresholdEvaluatorRearmingAbsoluteChange
public static class ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange extends AbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opennms.netmgt.threshd.ThresholdEvaluatorState
ThresholdEvaluatorState.Status, ThresholdEvaluatorState.ThresholdValues, ThresholdEvaluatorState.ValueStatus
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.threshd.AbstractThresholdEvaluatorState
FORMATED_NAN, fst, state, thresholdingSession
-
-
Constructor Summary
Constructors Constructor Description ThresholdEvaluatorStateRearmingAbsoluteChange(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearStateBeforePersist()
ThresholdEvaluatorState.Status
evaluateAfterFetch(double dsValue, ThresholdEvaluatorState.ThresholdValues thresholdValues)
ThresholdEvaluatorState
getCleanClone()
Returns a "clean" (armed, non-triggered) clone of this objectEvent
getEventForState(ThresholdEvaluatorState.Status status, java.util.Date date, double dsValue, ThresholdEvaluatorState.ThresholdValues thresholdValues, CollectionResourceWrapper resource)
getEventForStateBaseThresholdDefConfigWrapper
getThresholdConfig()
getThresholdConfigjava.lang.String
getType()
protected void
initializeState()
boolean
isTriggered()
Return true if current state is TRIGGERED-
Methods inherited from class org.opennms.netmgt.threshd.AbstractThresholdEvaluatorState
clearState, createBasicEvent, evaluate, evaluate, evaluate, evaluate, formatValue, getThresholdingSession, markDirty, reinitialize, setInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.threshd.ThresholdEvaluatorState
evaluate
-
-
-
-
Constructor Detail
-
ThresholdEvaluatorStateRearmingAbsoluteChange
public ThresholdEvaluatorStateRearmingAbsoluteChange(BaseThresholdDefConfigWrapper threshold, ThresholdingSession thresholdingSession)
-
-
Method Detail
-
initializeState
protected void initializeState()
- Specified by:
initializeState
in classAbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
-
getType
public java.lang.String getType()
-
getThresholdConfig
public BaseThresholdDefConfigWrapper getThresholdConfig()
Description copied from interface:ThresholdEvaluatorState
getThresholdConfig
- Returns:
- a
BaseThresholdDefConfigWrapper
object.
-
evaluateAfterFetch
public ThresholdEvaluatorState.Status evaluateAfterFetch(double dsValue, ThresholdEvaluatorState.ThresholdValues thresholdValues)
- Specified by:
evaluateAfterFetch
in classAbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
-
getEventForState
public Event getEventForState(ThresholdEvaluatorState.Status status, java.util.Date date, double dsValue, ThresholdEvaluatorState.ThresholdValues thresholdValues, CollectionResourceWrapper resource)
Description copied from interface:ThresholdEvaluatorState
getEventForState
- Parameters:
status
- aThresholdEvaluatorState.Status
object.date
- aDate
object.dsValue
- a double.resource
- aCollectionResourceWrapper
object. @return aEvent
object.
-
getCleanClone
public ThresholdEvaluatorState getCleanClone()
Description copied from interface:ThresholdEvaluatorState
Returns a "clean" (armed, non-triggered) clone of this object- Returns:
- a
ThresholdEvaluatorState
object.
-
isTriggered
public boolean isTriggered()
Description copied from interface:ThresholdEvaluatorState
Return true if current state is TRIGGERED- Returns:
- a boolean.
-
clearStateBeforePersist
public void clearStateBeforePersist()
- Specified by:
clearStateBeforePersist
in classAbstractThresholdEvaluatorState<org.opennms.netmgt.threshd.ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange.State>
-
-