|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.jnrpe.utils.thresholds.LegacyRange
public class LegacyRange
Utility class for evaluating thresholds. This class represent a Threshold specified using the old Nagios syntax.
Constructor Summary | |
---|---|
LegacyRange(String threshold)
Builds the object with the specified range. |
Method Summary | |
---|---|
boolean |
isValueInside(BigDecimal value)
Returns true if the value falls inside the range. |
boolean |
isValueInside(BigDecimal value,
Prefixes prefix)
Returns true if the value falls inside the range. |
boolean |
isValueInside(int value)
Returns true if the value falls inside the range. |
boolean |
isValueInside(long value)
Returns true if the value falls inside the range. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegacyRange(String threshold) throws BadThresholdException
threshold
- The range
BadThresholdException
- -Method Detail |
---|
public final boolean isValueInside(BigDecimal value)
true
if the value falls inside the range.
value
- The value
true
if the value falls inside the range.
false
otherwise.public final boolean isValueInside(BigDecimal value, Prefixes prefix)
true
if the value falls inside the range.
value
- The valueprefix
- The prefix that identifies the multiplier
true
if the value falls inside the range.
false
otherwise.public final boolean isValueInside(int value)
true
if the value falls inside the range.
value
- The value
true
if the value falls inside the range.
false
otherwise.public final boolean isValueInside(long value)
true
if the value falls inside the range.
value
- The value
true
if the value falls inside the range.
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |