|
||||||||||
| 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.TesterImpl
public class TesterImpl
fr.inria.peerUnit.Tester,
fr.inria.peerunit.VolatileTester,
StorageTester,
Coordinator,
java.util.concurrent.BlockingQueue,
Serialized Form| Field Summary |
|---|
| Fields inherited from class fr.inria.peerunit.base.AbstractTester |
|---|
defaults, globals, id |
| Constructor Summary | |
|---|---|
|
TesterImpl(Bootstrapper boot,
GlobalVariables gv)
Used to give the identifier of the tester. |
|
TesterImpl(Bootstrapper boot,
GlobalVariables gv,
TesterUtil tu)
|
protected |
TesterImpl(GlobalVariables gv,
int i,
TesterUtil tu)
|
| Method Summary | |
|---|---|
void |
cleanUp()
|
void |
execute(MethodDescription md)
Used to add an action to be executed |
void |
kill()
An example how to kill a peer YourTestClass test = new YourTestClass();
test.export(test.getClass());
test.run();
... // code
test.kill(); |
void |
quit()
Used to interrupt actions's execution. |
void |
registerTestCase(java.lang.Class<?> klass)
Creates the peer and the test testCase. |
void |
run()
starts the tester |
void |
setCoordinator(Coordinator c)
Sets the coordinator for this tester. |
void |
start()
|
| 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 TesterImpl(Bootstrapper boot,
GlobalVariables gv)
throws java.rmi.RemoteException
klass - the coordinator which give the tester's identifier.
java.rmi.RemoteException
public TesterImpl(Bootstrapper boot,
GlobalVariables gv,
TesterUtil tu)
throws java.rmi.RemoteException
java.rmi.RemoteException
protected TesterImpl(GlobalVariables gv,
int i,
TesterUtil tu)
| Method Detail |
|---|
public void setCoordinator(Coordinator c)
Tester
setCoordinator in interface Tester
public void start()
throws java.rmi.RemoteException
start in interface Testerjava.rmi.RemoteExceptionpublic void run()
run in interface java.lang.Runnablejava.lang.InterruptedExceptionpublic void registerTestCase(java.lang.Class<?> klass)
klass - the Test Case Class.
java.rmi.RemoteException
java.lang.SecurityException
public void execute(MethodDescription md)
throws java.rmi.RemoteException
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.
RemoteExcption
java.lang.InterruptedException
java.rmi.RemoteException - because the method is distantpublic void kill()
YourTestClass test = new YourTestClass();
test.export(test.getClass());
test.run();
... // code
test.kill();
kill in interface Testerpublic void quit()
public void cleanUp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||