org.ourgrid.test.functionaltests.busywait
Class ConditionWaiter

java.lang.Object
  extended by org.ourgrid.test.functionaltests.busywait.ConditionWaiter

public class ConditionWaiter
extends java.lang.Object

This is used to wait for a certain condition.

Author:
Flavio Vinicius Diniz de Figueiredo - flaviov@lsd.ufcg.edu.br

Field Summary
static long WAIT_PERIOD
          Timw between condition verifies.
 
Constructor Summary
ConditionWaiter()
           
 
Method Summary
static void waitForCondition(WaitCondition waitCondition)
          This method wait for a certain condition from times to times.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAIT_PERIOD

public static final long WAIT_PERIOD
Timw between condition verifies.

See Also:
Constant Field Values
Constructor Detail

ConditionWaiter

public ConditionWaiter()
Method Detail

waitForCondition

public static void waitForCondition(WaitCondition waitCondition)
                             throws java.lang.Exception
This method wait for a certain condition from times to times.

Parameters:
waitCondition - Condition to verify.
Throws:
java.lang.Exception - If condition cannot be verified.