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

java.lang.Object
  extended by org.rhq.enterprise.server.alert.engine.model.AbstractCacheElement<org.rhq.core.domain.measurement.calltime.CallTimeDataValue>
      extended by org.rhq.enterprise.server.alert.engine.model.CallTimeDataCacheElement

public class CallTimeDataCacheElement
extends AbstractCacheElement<org.rhq.core.domain.measurement.calltime.CallTimeDataValue>

Author:
fbrueseke

Nested Class Summary
static class CallTimeDataCacheElement.CallTimeElementValue
           
 
Field Summary
 
Fields inherited from class org.rhq.enterprise.server.alert.engine.model.AbstractCacheElement
active, alertConditionOperator, alertConditionOperatorOption, alertConditionTriggerId, alertConditionValue, log, nextCacheElement
 
Constructor Summary
CallTimeDataCacheElement(AlertConditionOperator operator, CallTimeDataCacheElement.CallTimeElementValue whichValue, String comparator, Double value, int conditionId, String callDestPattern)
           
 
Method Summary
 String convertValueToString(org.rhq.core.domain.measurement.calltime.CallTimeDataValue value)
           
 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(org.rhq.core.domain.measurement.calltime.CallTimeDataValue providedValue, Object... extras)
           
 
Methods inherited from class org.rhq.enterprise.server.alert.engine.model.AbstractCacheElement
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
 

Constructor Detail

CallTimeDataCacheElement

public CallTimeDataCacheElement(AlertConditionOperator operator,
                                CallTimeDataCacheElement.CallTimeElementValue whichValue,
                                String comparator,
                                Double value,
                                int conditionId,
                                String callDestPattern)
Method Detail

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<org.rhq.core.domain.measurement.calltime.CallTimeDataValue>
See Also:
AlertConditionOperator

matches

public boolean matches(org.rhq.core.domain.measurement.calltime.CallTimeDataValue providedValue,
                       Object... extras)
Specified by:
matches in class AbstractCacheElement<org.rhq.core.domain.measurement.calltime.CallTimeDataValue>

convertValueToString

public String convertValueToString(org.rhq.core.domain.measurement.calltime.CallTimeDataValue value)
Overrides:
convertValueToString in class AbstractCacheElement<org.rhq.core.domain.measurement.calltime.CallTimeDataValue>


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