org.opennms.netmgt.threshd
Class ThresholdEvaluatorRelativeChange

java.lang.Object
  extended by org.opennms.netmgt.threshd.ThresholdEvaluatorRelativeChange
All Implemented Interfaces:
ThresholdEvaluator

public class ThresholdEvaluatorRelativeChange
extends Object
implements ThresholdEvaluator

Implements a relative change threshold check. A 'value' setting of less than 1.0 means that a threshold will fire if the current value is less than or equal to the previous value multiplied by the 'value' setting. A 'value' setting greater than 1.0 causes the threshold to fire if the current value is greater than or equal to the previous value multiplied by the 'value' setting. A 'value' setting of 1.0 (unity) is not allowed, as it represents no change. Zero valued samples (0.0) are ignored, as 0.0 multiplied by anything is 0.0 (if they were not ignored, an interface that gets no traffic would always trigger a threshold, for example).


Nested Class Summary
static class ThresholdEvaluatorRelativeChange.ThresholdEvaluatorStateRelativeChange
           
 
Constructor Summary
ThresholdEvaluatorRelativeChange()
           
 
Method Summary
 ThresholdEvaluatorState getThresholdEvaluatorState(BaseThresholdDefConfigWrapper threshold)
           
 boolean supportsType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdEvaluatorRelativeChange

public ThresholdEvaluatorRelativeChange()
Method Detail

getThresholdEvaluatorState

public ThresholdEvaluatorState getThresholdEvaluatorState(BaseThresholdDefConfigWrapper threshold)
Specified by:
getThresholdEvaluatorState in interface ThresholdEvaluator

supportsType

public boolean supportsType(String type)
Specified by:
supportsType in interface ThresholdEvaluator


Copyright © 2009. All Rights Reserved.