org.rhq.enterprise.server.alert.engine.model
Class DriftCacheElement

java.lang.Object
  extended by org.rhq.enterprise.server.alert.engine.model.AbstractCacheElement<Object>
      extended by org.rhq.enterprise.server.alert.engine.model.DriftCacheElement

public class DriftCacheElement
extends AbstractCacheElement<Object>


Field Summary
static Object UNUSED_CONDITION_VALUE
           
 
Fields inherited from class org.rhq.enterprise.server.alert.engine.model.AbstractCacheElement
active, alertConditionOperator, alertConditionOperatorOption, alertConditionTriggerId, alertConditionValue, log, nextCacheElement
 
Constructor Summary
DriftCacheElement(AlertConditionOperator operator, String driftDefNameRegexStr, String driftPathNameRegexStr, int conditionTriggerId)
           
 
Method Summary
 AlertConditionOperator.Type getOperatorSupportsType(AlertConditionOperator operator)
          For the most part, the operator itself denotes whether it makes comparisons against a sliding scale or not.
 boolean matches(Object providedValue, Object... extraParams)
           
 
Methods inherited from class org.rhq.enterprise.server.alert.engine.model.AbstractCacheElement
convertValueToString, equals, getAlertConditionOperator, getAlertConditionOperatorOption, getAlertConditionTriggerId, getAlertConditionValue, hashCode, isActive, isType, process, setActive, setAlertConditionValue, setNextCacheElement, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNUSED_CONDITION_VALUE

public static final Object UNUSED_CONDITION_VALUE
Constructor Detail

DriftCacheElement

public DriftCacheElement(AlertConditionOperator operator,
                         String driftDefNameRegexStr,
                         String driftPathNameRegexStr,
                         int conditionTriggerId)
Method Detail

matches

public boolean matches(Object providedValue,
                       Object... extraParams)
Specified by:
matches in class AbstractCacheElement<Object>

getOperatorSupportsType

public AlertConditionOperator.Type getOperatorSupportsType(AlertConditionOperator operator)
Description copied from class: AbstractCacheElement
For the most part, the operator itself denotes whether it makes comparisons against a sliding scale or not. However, this doesn't hold in every conceivable scenario. Thus, the defaultSupportsType will support 95% of the use cases, and the AbstractCacheElement's getOperatorSupportsType will have a chance to override this.

Specified by:
getOperatorSupportsType in class AbstractCacheElement<Object>
See Also:
AlertConditionOperator


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.