org.ourgrid.test.functionaltests.busywait
Class JobStatusCondition

java.lang.Object
  extended by org.ourgrid.test.functionaltests.busywait.JobStatusCondition
All Implemented Interfaces:
WaitCondition

public class JobStatusCondition
extends java.lang.Object
implements WaitCondition

Condition used to wait until a job has reached a certain state.

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

Constructor Summary
JobStatusCondition(MyGridUnit myGridUnit, int jobId, ExecutionStatus executionStatus)
           
 
Method Summary
 boolean verifyCondition()
          Verifies a certain condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobStatusCondition

public JobStatusCondition(MyGridUnit myGridUnit,
                          int jobId,
                          ExecutionStatus executionStatus)
Method Detail

verifyCondition

public boolean verifyCondition()
                        throws java.lang.Exception
Description copied from interface: WaitCondition
Verifies a certain condition.

Specified by:
verifyCondition in interface WaitCondition
Returns:
True if condition has been met, false otherwise.
Throws:
java.lang.Exception - In case the condition could not be verfied.