org.rhq.enterprise.server.alert.engine.model
Class AbstractEnumCacheElement<E extends Enum<E>>
java.lang.Object
org.rhq.enterprise.server.alert.engine.model.AbstractCacheElement<E>
org.rhq.enterprise.server.alert.engine.model.AbstractEnumCacheElement<E>
- Direct Known Subclasses:
- AvailabilityCacheElement, EventCacheElement, ResourceOperationCacheElement
public abstract class AbstractEnumCacheElement<E extends Enum<E>>
- extends AbstractCacheElement<E>
- Author:
- Joseph Marques
| 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 |
AbstractEnumCacheElement
public AbstractEnumCacheElement(AlertConditionOperator operator,
E value,
int conditionTriggerId)
AbstractEnumCacheElement
public AbstractEnumCacheElement(AlertConditionOperator operator,
Object operatorOption,
E value,
int conditionTriggerId)
matches
public boolean matches(E providedValue,
Object... extraParams)
- Specified by:
matches in class AbstractCacheElement<E extends Enum<E>>
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<E extends Enum<E>>
- See Also:
AlertConditionOperator
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.