uk.co.gidley.jmxmonitor.functions
Class RangeFunctions

java.lang.Object
  extended by uk.co.gidley.jmxmonitor.functions.RangeFunctions

public class RangeFunctions
extends Object

Library of extra functions for scripting. These are just to make it easier to do things in the scripts

This library is themed around checking ranges

Created by IntelliJ IDEA. User: ben Date: Jan 19, 2010 Time: 1:08:02 PM


Constructor Summary
RangeFunctions()
           
 
Method Summary
static boolean isAbove(long reading, long value)
          Returns true IFF reading is greater than value
static boolean isBelow(long reading, long value)
          Returns true IFF reading is less than value
static boolean isBetween(long reading, long floor, long ceiling)
          Returns true IFF reading is between floor and ceiling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeFunctions

public RangeFunctions()
Method Detail

isAbove

public static boolean isAbove(long reading,
                              long value)
Returns true IFF reading is greater than value

Parameters:
reading -
value -
Returns:

isBelow

public static boolean isBelow(long reading,
                              long value)
Returns true IFF reading is less than value

Parameters:
reading -
value -
Returns:

isBetween

public static boolean isBetween(long reading,
                                long floor,
                                long ceiling)
Returns true IFF reading is between floor and ceiling

Parameters:
reading -
floor -
ceiling -
Returns:


Copyright © 2009-2010. All Rights Reserved.