org.ourgrid.test.functionalunits
Class RemoteTestServicesImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.ourgrid.common.rmi.OurgridUnicastRemoteObject
org.ourgrid.test.functionalunits.RemoteTestServicesImpl
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RemoteTestServices
public class RemoteTestServicesImpl
- extends OurgridUnicastRemoteObject
- implements RemoteTestServices
Implementation of the org.ourgrid.test.functionalunits.RemoteTestServices
interface.
- Author:
- Flavio Vinicius Diniz de Figueiredo - flaviov@lsd.ufcg.edu.br
- See Also:
RemoteTestServices
,
Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RemoteTestServicesImpl
public RemoteTestServicesImpl()
throws java.rmi.RemoteException
- Builds a new
RemoteTestServicesImpl
.
- Throws:
java.rmi.RemoteException
- Thrown by RMI standards.
waitUntilServiceHasStopped
public void waitUntilServiceHasStopped()
throws java.rmi.RemoteException
- Description copied from interface:
RemoteTestServices
- 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.
- Specified by:
waitUntilServiceHasStopped
in interface RemoteTestServices
- Throws:
java.rmi.RemoteException
- Thrown by RMI standards.- See Also:
ThreadServices.waitUntilWorkIsDone()
,
ThreadPoolServices.waitUntilWorkIsDone()
stillIdle
public boolean stillIdle()
throws java.rmi.RemoteException
- Description copied from interface:
RemoteTestServices
- 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()
- Specified by:
stillIdle
in interface RemoteTestServices
- Throws:
java.rmi.RemoteException
- Thrown by RMI standards.- See Also:
RemoteTestServices.waitUntilServiceHasStopped()
killService
public void killService()
throws java.rmi.RemoteException
- Description copied from interface:
RemoteTestServices
- This method will call
java.lang.System#exit(int)
forcing
this service to abnormaly stop.
- Specified by:
killService
in interface RemoteTestServices
- Throws:
java.rmi.RemoteException
- Thrown by RMI standards.- See Also:
System.exit(int)