|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.utils.ThresholdUtil
public final class ThresholdUtil
Utility class for evaluating threshold This class conforms to the nagios plugin guidelines (http://nagiosplug.sourceforge.net/developer-guidelines.html #THRESHOLDFORMAT). The generalised range format is: [@]start:end Values are interpreted this way:
| Method Summary | |
|---|---|
static boolean |
isValueInRange(String sRange,
BigDecimal value)
Returns true if the value dalue falls into the
range sRange. |
static boolean |
isValueInRange(String sRange,
int iValue)
Returns true if the value iValue falls into
the range sRange. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isValueInRange(String sRange,
int iValue)
throws BadThresholdException
true if the value iValue falls into
the range sRange.
sRange - The rangeiValue - The value
true if the value iValue falls into the
BadThresholdException
public static boolean isValueInRange(String sRange,
BigDecimal value)
throws BadThresholdException
true if the value dalue falls into the
range sRange.
sRange - The rangevalue - The value
given range
BadThresholdException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||