org.opennms.netmgt.threshd
Class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
java.lang.Object
org.opennms.netmgt.threshd.AbstractThresholdEvaluatorState
org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
- All Implemented Interfaces:
- ThresholdEvaluatorState
- Enclosing class:
- ThresholdEvaluatorHighLow
public static class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
- extends AbstractThresholdEvaluatorState
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
public ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold)
isArmed
public boolean isArmed()
setArmed
public void setArmed(boolean armed)
getExceededCount
public int getExceededCount()
setExceededCount
public void setExceededCount(int exceededCount)
getThresholdConfig
public BaseThresholdDefConfigWrapper getThresholdConfig()
setThresholdConfig
public void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
getType
public String getType()
evaluate
public ThresholdEvaluatorState.Status evaluate(double dsValue)
isThresholdExceeded
protected boolean isThresholdExceeded(double dsValue)
isRearmExceeded
protected boolean isRearmExceeded(double dsValue)
isTriggerCountExceeded
protected boolean isTriggerCountExceeded()
getEventForState
public Event getEventForState(ThresholdEvaluatorState.Status status,
Date date,
double dsValue,
CollectionResourceWrapper resource)
getCleanClone
public ThresholdEvaluatorState getCleanClone()
- Description copied from interface:
ThresholdEvaluatorState
- Returns a "clean" (armed, non-triggered) clone of this object
- Returns:
isTriggered
public boolean isTriggered()
- Description copied from interface:
ThresholdEvaluatorState
- Return true if current state is TRIGGERED
clearState
public void clearState()
Copyright © 2009. All Rights Reserved.