|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.peerunit.base.AbstractTester
fr.inria.peerunit.rmi.tester.DistributedTesterImpl
public class DistributedTesterImpl
The DistributedTester is both, a Tester and a Coordinator. As a Tester, it has a Coordinator, it registers a test case and executes test steps when requested by its Coordinator. As a coordinator, it accepts the registration of several testers and asks its testers to execute test steps.
| Field Summary |
|---|
| Fields inherited from class fr.inria.peerunit.base.AbstractTester |
|---|
defaults, globals, id |
| Constructor Summary | |
|---|---|
DistributedTesterImpl(java.lang.Class<?> klass,
Bootstrapper boot,
GlobalVariables gv,
TesterUtil tu)
|
|
| Method Summary | |
|---|---|
void |
execute(MethodDescription md)
Execute a test case action thanks to it description. |
void |
kill()
Stop the tester. |
void |
methodExecutionFinished(ResultSet result)
|
void |
quit(Tester t)
Finish the test case and calculates the global oracle |
void |
register()
Registers this distributed tester with the bootstrapper and receives an id. |
void |
registerMethods(Tester tester,
java.util.Collection<MethodDescription> list)
|
void |
registerTesters(java.util.List<Tester> l)
Sets the testers that are controlled by this tester and informs the tester that this tester is their controller |
void |
setCoordinator(Coordinator coord)
Sets the coordinator for this tester. |
void |
start()
Starts the distributed tester: - Creates the local tester and the local coordinator |
| Methods inherited from class fr.inria.peerunit.base.AbstractTester |
|---|
clear, containsKey, get, getCollection, getId, getPeerName, globalTable, initializeLogger, put, setId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface fr.inria.peerunit.Tester |
|---|
getId |
| Methods inherited from interface fr.inria.peerunit.StorageTester |
|---|
clear, containsKey, get, getCollection, put |
| Constructor Detail |
|---|
public DistributedTesterImpl(java.lang.Class<?> klass,
Bootstrapper boot,
GlobalVariables gv,
TesterUtil tu)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public void register()
public void registerTesters(java.util.List<Tester> l)
throws java.rmi.RemoteException
registerTesters in interface Coordinatorjava.rmi.RemoteExceptionCoordinator.registerTesters(java.util.List)
public void registerMethods(Tester tester,
java.util.Collection<MethodDescription> list)
throws java.rmi.RemoteException
registerMethods in interface Coordinatorjava.rmi.RemoteExceptionfr.inria.peerunit.Coordinator#registerMethods(fr.inria.peerunit.Tester, java.util.List)
public void execute(MethodDescription md)
throws java.rmi.RemoteException
Tester
execute in interface Testermd - is a instance of MathodDescription class containing all informations allowing
the correct execution of the test case action that it describes.
java.lang.InterruptedException
java.rmi.RemoteException - because the method is distantTester.execute(fr.inria.peerunit.parser.MethodDescription)
public void methodExecutionFinished(ResultSet result)
throws java.rmi.RemoteException
methodExecutionFinished in interface Coordinatorjava.rmi.RemoteExceptionfr.inria.peerunit.Coordinator#methodExecutionFinished(Tester, fr.inria.peerunit.MessageType)
public void quit(Tester t)
throws java.rmi.RemoteException
Coordinator
quit in interface Coordinatorjava.rmi.RemoteExceptionfr.inria.peerunit.Coordinator#quit(fr.inria.peerunit.Tester, fr.inria.peerunit.test.oracle.Verdicts)
public void kill()
throws java.rmi.RemoteException
Tester
kill in interface Testerjava.rmi.RemoteExceptionTester.kill()public void setCoordinator(Coordinator coord)
Tester
setCoordinator in interface TesterTester.setCoordinator(fr.inria.peerunit.Coordinator)
public void start()
throws java.rmi.RemoteException
start in interface Testerjava.rmi.RemoteException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||