org.opennms.netmgt.threshd
Class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
java.lang.Object
org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
- All Implemented Interfaces:
- ThresholdEvaluatorState
- Enclosing class:
- ThresholdEvaluatorHighLow
public static class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
- extends Object
- implements ThresholdEvaluatorState
| 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()
- Specified by:
getThresholdConfig in interface ThresholdEvaluatorState
setThresholdConfig
public void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
getType
public String getType()
evaluate
public ThresholdEvaluatorState.Status evaluate(double dsValue)
- Specified by:
evaluate in interface ThresholdEvaluatorState
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,
String dsInstance)
- Specified by:
getEventForState in interface ThresholdEvaluatorState
getCleanClone
public ThresholdEvaluatorState getCleanClone()
- Description copied from interface:
ThresholdEvaluatorState
- Returns a "clean" (armed, non-triggered) clone of this object
- Specified by:
getCleanClone in interface ThresholdEvaluatorState
- Returns:
Copyright © 2009. All Rights Reserved.