org.opennms.netmgt.threshd
Class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow

java.lang.Object
  extended by org.opennms.netmgt.threshd.ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
All Implemented Interfaces:
ThresholdEvaluatorState
Enclosing class:
ThresholdEvaluatorHighLow

public static class ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow
extends Object
implements ThresholdEvaluatorState


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opennms.netmgt.threshd.ThresholdEvaluatorState
ThresholdEvaluatorState.Status
 
Constructor Summary
ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold)
           
 
Method Summary
 ThresholdEvaluatorState.Status evaluate(double dsValue)
           
 ThresholdEvaluatorState getCleanClone()
          Returns a "clean" (armed, non-triggered) clone of this object
 Event getEventForState(ThresholdEvaluatorState.Status status, Date date, double dsValue, String dsInstance)
           
 int getExceededCount()
           
 BaseThresholdDefConfigWrapper getThresholdConfig()
           
 String getType()
           
 boolean isArmed()
           
protected  boolean isRearmExceeded(double dsValue)
           
protected  boolean isThresholdExceeded(double dsValue)
           
protected  boolean isTriggerCountExceeded()
           
 void setArmed(boolean armed)
           
 void setExceededCount(int exceededCount)
           
 void setThresholdConfig(BaseThresholdDefConfigWrapper thresholdConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow

public ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow(BaseThresholdDefConfigWrapper threshold)
Method Detail

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.