org.opennms.netmgt.threshd
Interface ThresholdEvaluatorState

All Known Implementing Classes:
ThresholdEvaluatorAbsoluteChange.ThresholdEvaluatorStateAbsoluteChange, ThresholdEvaluatorHighLow.ThresholdEvaluatorStateHighLow, ThresholdEvaluatorRearmingAbsoluteChange.ThresholdEvaluatorStateRearmingAbsoluteChange, ThresholdEvaluatorRelativeChange.ThresholdEvaluatorStateRelativeChange

public interface ThresholdEvaluatorState

Provides a method to evaluate a threshold and do base population of events. There is an instance of ThresholdEvaluatorState for each configured thresholding type on each configured data source on each configured node/interface/etc.. The object that implements this interface usually also stores state (hence the name).


Nested Class Summary
static class ThresholdEvaluatorState.Status
           
 
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 instance)
           
 BaseThresholdDefConfigWrapper getThresholdConfig()
           
 

Method Detail

evaluate

ThresholdEvaluatorState.Status evaluate(double dsValue)

getEventForState

Event getEventForState(ThresholdEvaluatorState.Status status,
                       Date date,
                       double dsValue,
                       String instance)

getThresholdConfig

BaseThresholdDefConfigWrapper getThresholdConfig()

getCleanClone

ThresholdEvaluatorState getCleanClone()
Returns a "clean" (armed, non-triggered) clone of this object

Returns:


Copyright © 2009. All Rights Reserved.