|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.peerunit.rmi.coord.CoordinatorImpl
public class CoordinatorImpl
| Constructor Summary | |
|---|---|
CoordinatorImpl(int testerNbr,
int relaxIndex)
|
|
CoordinatorImpl(TesterUtil tu)
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Clears references to testers. |
void |
execute(MethodDescription md)
Dispatches a given action to a given set of testers. |
ResultSet |
getResultFor(MethodDescription md)
|
Schedule |
getSchedule()
|
boolean |
isRoot(int id)
|
void |
methodExecutionFinished(ResultSet rs)
|
void |
printVerdict()
Waits for all testers to quit and calculates the global verdict for a test case. |
void |
quit()
Makes the boostrapper leave the system. |
void |
quit(Tester t)
Finish the test case and calculates the global oracle |
int |
register(Tester t)
Registers a tester to this Bootstrapper. |
void |
registerMethods(Tester t,
java.util.Collection<MethodDescription> list)
|
void |
registerTesters(java.util.List<Tester> testers)
|
void |
run()
|
void |
testcaseExecution()
Dispatches actions to testers: |
java.lang.String |
toString()
|
void |
waitAllTestersToQuit()
Waits for all testers to quit the system. |
void |
waitForTesterRegistration()
Waits for all expected testers to registerMethods. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoordinatorImpl(int testerNbr,
int relaxIndex)
i - Number of expected testers. The Coordinator will wait for
the connection of "i" testers before starting to dispatch actions
to Testers.public CoordinatorImpl(TesterUtil tu)
| Method Detail |
|---|
public void registerTesters(java.util.List<Tester> testers)
throws java.rmi.RemoteException
registerTesters in interface Coordinatorjava.rmi.RemoteException
public void registerMethods(Tester t,
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 run()
run in interface java.lang.Runnablepublic void printVerdict()
chrono -
public void testcaseExecution()
throws java.lang.InterruptedException
chrono -
java.lang.InterruptedException
public void execute(MethodDescription md)
throws java.lang.InterruptedException
testers - md -
java.lang.InterruptedExceptionpublic ResultSet getResultFor(MethodDescription md)
public int register(Tester t)
throws java.rmi.RemoteException
Bootstrapper
register in interface Bootstrappert - The Tester to be registered.
java.rmi.RemoteException - When a communication error occurs.
public void methodExecutionFinished(ResultSet rs)
throws java.rmi.RemoteException
methodExecutionFinished in interface Coordinatorjava.rmi.RemoteException
public void quit(Tester t)
throws java.rmi.RemoteException
Coordinator
quit in interface Coordinatorjava.rmi.RemoteExceptionpublic Schedule getSchedule()
public void waitForTesterRegistration()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void waitAllTestersToQuit()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void cleanUp()
public java.lang.String toString()
toString in class java.lang.Object
public boolean isRoot(int id)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void quit()
throws java.rmi.RemoteException
Bootstrapper
quit in interface Bootstrapperjava.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||