org.ourgrid.test.functionalunits
Interface RemoteTestServices

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RemoteTestServicesImpl

public interface RemoteTestServices
extends java.rmi.Remote

This interface defines functionalities that OurGrid services must have while being under tests. This interface must only be inserted in a OurGrid service through the use of aspects.

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

Method Summary
 void killService()
          This method will call java.lang.System#exit(int) forcing this service to abnormaly stop.
 boolean stillIdle()
          This method will call the org.ourgrid.test.threadServices.ThreadServices#stillIdle() and the org.ourgrid.test.threadServices.ThreadPoolServices#stillIdle() to make sure this service has not started running since the last waitUntilServiceHasStopped()
 void waitUntilServiceHasStopped()
          This method will call the org.ourgrid.test.threadServices.ThreadServices#waitUntilWorkIsDone() and the org.ourgrid.test.threadServices.ThreadPoolServices#waitUntilWorkIsDone() to wait until this service has stopped.
 

Method Detail

waitUntilServiceHasStopped

void waitUntilServiceHasStopped()
                                throws java.rmi.RemoteException
This method will call the org.ourgrid.test.threadServices.ThreadServices#waitUntilWorkIsDone() and the org.ourgrid.test.threadServices.ThreadPoolServices#waitUntilWorkIsDone() to wait until this service has stopped.

Throws:
java.rmi.RemoteException - Thrown by RMI standards.
See Also:
ThreadServices.waitUntilWorkIsDone(), ThreadPoolServices.waitUntilWorkIsDone()

stillIdle

boolean stillIdle()
                  throws java.rmi.RemoteException
This method will call the org.ourgrid.test.threadServices.ThreadServices#stillIdle() and the org.ourgrid.test.threadServices.ThreadPoolServices#stillIdle() to make sure this service has not started running since the last waitUntilServiceHasStopped()

Throws:
java.rmi.RemoteException - Thrown by RMI standards.
See Also:
waitUntilServiceHasStopped()

killService

void killService()
                 throws java.rmi.RemoteException
This method will call java.lang.System#exit(int) forcing this service to abnormaly stop.

Throws:
java.rmi.RemoteException - Thrown by RMI standards.
See Also:
System.exit(int)