|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rhq.domain.correlation.NormalizationRule
org.rhq.domain.correlation.AvailabilityNormalizationRule
public class AvailabilityNormalizationRule
Normalization Rule for Availabilities
Constructor Summary | |
---|---|
AvailabilityNormalizationRule(int resourceId,
java.lang.String name,
ResultState stateForUp,
ResultState stateForDown)
Create a new Rule |
Method Summary | |
---|---|
int |
getResourceId()
Return the resource id this rule is for |
ResultState |
getStateForDown()
Returns the result state that should be used if AvailabilityType is DOWN |
ResultState |
getStateForUp()
Returns the result state that should be used if AvailabilityType is UP |
ResultState |
normalize(org.rhq.core.domain.measurement.Availability availability)
Normalize the provided input |
Methods inherited from class org.rhq.domain.correlation.NormalizationRule |
---|
getId, getRuleName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvailabilityNormalizationRule(int resourceId, java.lang.String name, ResultState stateForUp, ResultState stateForDown)
resourceId
- The resource this should apply toname
- The name of the rulestateForUp
- The ResultState
if the resource is UPstateForDown
- The ResultState
if the resource reports as DOWNMethod Detail |
---|
public ResultState normalize(org.rhq.core.domain.measurement.Availability availability)
availability
- The value to check
public int getResourceId()
public ResultState getStateForUp()
AvailabilityType
is UP
AvailabilityType
.UPpublic ResultState getStateForDown()
AvailabilityType
is DOWN
AvailabilityType
.DOWN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |