public final class AvailabilityDurationCacheElement extends AbstractEnumCacheElement<org.rhq.core.domain.measurement.AvailabilityType>
activity, alertConditionOperator, alertConditionOperatorOption, alertConditionTriggerId, alertConditionValue, log, nextCacheElement| Constructor and Description |
|---|
AvailabilityDurationCacheElement(int alertDefinitionId,
org.rhq.core.domain.alert.AlertConditionOperator operator,
String operatorOption,
org.rhq.core.domain.measurement.AvailabilityType value,
int conditionTriggerId) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCacheElements(List<AvailabilityDurationCacheElement> cacheElements,
org.rhq.core.domain.resource.Resource resource,
org.rhq.core.domain.measurement.Availability providedValue)
Here we check to see if an availability change for a resource should initiate an avail duration check.
|
int |
getAlertDefinitionId() |
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.
|
boolean |
matches(org.rhq.core.domain.measurement.AvailabilityType providedValue,
Object... extraParams) |
convertValueToString, equals, getActivity, getAlertConditionOperator, getAlertConditionOperatorOption, getAlertConditionTriggerId, getAlertConditionValue, hashCode, isType, process, setActivity, setAlertConditionValue, setNextCacheElement, toStringpublic AvailabilityDurationCacheElement(int alertDefinitionId,
org.rhq.core.domain.alert.AlertConditionOperator operator,
String operatorOption,
org.rhq.core.domain.measurement.AvailabilityType value,
int conditionTriggerId)
operator - operatorOption - the duration, in seconds (as String)value - conditionTriggerId - this is actually the alertConditionId, renamed here.public static void checkCacheElements(List<AvailabilityDurationCacheElement> cacheElements, org.rhq.core.domain.resource.Resource resource, org.rhq.core.domain.measurement.Availability providedValue)
cacheElements - resource - providedValue - public int getAlertDefinitionId()
public boolean matches(org.rhq.core.domain.measurement.AvailabilityType providedValue,
Object... extraParams)
matches in class AbstractEnumCacheElement<org.rhq.core.domain.measurement.AvailabilityType>public org.rhq.core.domain.alert.AlertConditionOperator.Type getOperatorSupportsType(org.rhq.core.domain.alert.AlertConditionOperator operator)
AbstractCacheElementgetOperatorSupportsType in class AbstractEnumCacheElement<org.rhq.core.domain.measurement.AvailabilityType>AlertConditionOperatorCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.