Rio Project 4.2 API Documentation



org.rioproject.watch
Class BoundedThresholdManager

java.lang.Object
  extended by org.rioproject.watch.ThresholdManager
      extended by org.rioproject.watch.BoundedThresholdManager

public class BoundedThresholdManager
extends ThresholdManager

The BoundedThresholdManager provides support for threshold handling as follows: A ThresholdNotify.notify method is invoked when the high threshold is breached, and again invoked when the Calculable drops below the high threshold. Low threshold processing occurs in the same manner


Field Summary
 
Fields inherited from class org.rioproject.watch.ThresholdManager
thresholdListeners, thresholdValues
 
Constructor Summary
BoundedThresholdManager()
           
 
Method Summary
 void checkThreshold(Calculable calculable)
          Check the threshold and determine if any action needs to occur
 boolean getThresholdCrossed()
          Get the type of threshold that has been crossed
 
Methods inherited from class org.rioproject.watch.ThresholdManager
addThresholdListener, clear, getThresholdListeners, getThresholdValues, notifyListeners, removeThresholdListener, setThresholdValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundedThresholdManager

public BoundedThresholdManager()
Method Detail

getThresholdCrossed

public boolean getThresholdCrossed()
Description copied from class: ThresholdManager
Get the type of threshold that has been crossed

Specified by:
getThresholdCrossed in class ThresholdManager
Returns:
The type of threshold that has been crossed

checkThreshold

public void checkThreshold(Calculable calculable)
Description copied from class: ThresholdManager
Check the threshold and determine if any action needs to occur

Specified by:
checkThreshold in class ThresholdManager
Parameters:
calculable - The Calculable to check

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.