public abstract class AbstractCacheElement<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected org.rhq.core.domain.alert.AlertConditionOperator |
alertConditionOperator |
protected Object |
alertConditionOperatorOption |
protected int |
alertConditionTriggerId |
protected T |
alertConditionValue |
protected org.apache.commons.logging.Log |
log |
protected AbstractCacheElement<?> |
nextCacheElement |
| Constructor and Description |
|---|
AbstractCacheElement(org.rhq.core.domain.alert.AlertConditionOperator operator,
Object operatorOption,
T value,
int conditionId) |
AbstractCacheElement(org.rhq.core.domain.alert.AlertConditionOperator operator,
T value,
int conditionTriggerId) |
| Modifier and Type | Method and Description |
|---|---|
String |
convertValueToString(T providedValue) |
boolean |
equals(Object obj) |
org.rhq.core.domain.alert.AlertConditionOperator |
getAlertConditionOperator() |
Object |
getAlertConditionOperatorOption() |
int |
getAlertConditionTriggerId() |
T |
getAlertConditionValue() |
abstract org.rhq.core.domain.alert.AlertConditionOperator.Type |
getOperatorSupportsType(org.rhq.core.domain.alert.AlertConditionOperator operator)
For the most part, the operator itself denotes whether it makes comparisons against a sliding scale or not.
|
int |
hashCode() |
boolean |
isActive() |
boolean |
isType(org.rhq.core.domain.alert.AlertConditionOperator.Type type)
convenience method to test whether this cache element instance equals the specified type
|
abstract boolean |
matches(T providedValue,
Object... extras) |
boolean |
process(T providedValue,
Object... extraParams) |
void |
setActive(boolean active) |
void |
setAlertConditionValue(T updatedValue) |
void |
setNextCacheElement(AbstractCacheElement<?> nextCacheElement) |
String |
toString() |
protected final org.apache.commons.logging.Log log
protected org.rhq.core.domain.alert.AlertConditionOperator alertConditionOperator
protected Object alertConditionOperatorOption
protected T alertConditionValue
protected int alertConditionTriggerId
protected boolean active
protected AbstractCacheElement<?> nextCacheElement
public AbstractCacheElement(org.rhq.core.domain.alert.AlertConditionOperator operator,
T value,
int conditionTriggerId)
public void setNextCacheElement(AbstractCacheElement<?> nextCacheElement)
public org.rhq.core.domain.alert.AlertConditionOperator getAlertConditionOperator()
public Object getAlertConditionOperatorOption()
public T getAlertConditionValue()
public void setAlertConditionValue(T updatedValue)
public int getAlertConditionTriggerId()
public boolean isActive()
public void setActive(boolean active)
public abstract org.rhq.core.domain.alert.AlertConditionOperator.Type getOperatorSupportsType(org.rhq.core.domain.alert.AlertConditionOperator operator)
AlertConditionOperatorpublic boolean isType(org.rhq.core.domain.alert.AlertConditionOperator.Type type)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.