|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.peerunit.util.TesterUtil
public class TesterUtil
This class retrieve the application properties stocked in the properties file. These properties allow for instance to parameter the testing architecture type (centralized or distributed), the number of testers expected, etc.
| Field Summary | |
|---|---|
static TesterUtil |
instance
|
| Constructor Summary | |
|---|---|
TesterUtil(java.io.InputStream is)
|
|
TesterUtil(java.util.Properties p)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getBootstrap()
Return the peers's bootstrap address, may be different from tester's bootstrap one. |
int |
getBootstrapPort()
Return the peers's bootstrap port, may be different from tester's bootstrap one. |
int |
getChurnPercentage()
Return a percentage of peers's number that is used by some test cases for instance for choose the number of peers that join the test in first and those who join it in second. |
int |
getCoordinationType()
Return the testing architecture type, centralized or distributed |
java.lang.String |
getDateformat()
Return the date format used for logging. |
java.lang.String |
getDelimiter()
Return the delimiter used for logging |
int |
getExpectedTesters()
Return the number of testers expected in the properties file. |
java.lang.String |
getHostsFilePath()
Return the value of the property that indicates the path of the file containing the tester's hosts addresses. |
java.lang.String |
getLogfile()
Return the log file name |
java.lang.String |
getLogfolder()
Return the application log file folder |
java.util.logging.Level |
getLogLevel()
Return the value of the property that fix the application logging level. |
int |
getLoopToFail()
Return the number of try of a test action. |
int |
getObjects()
Return the number of object to put in the Open chord or FreePastry's DHT for the testing. |
int |
getPeerName()
This method decrement for every call the number of testers expected in the properties file and return it, apart the first call where it initialize only and return it . |
int |
getPort()
Return the coordinator or bootstrapper's port depending on the testing architecture is distributed or centralized. |
int |
getRegistryPort()
This method return the Tester's Bootstrap addresses. |
int |
getRelaxIndex()
Return the relaxation index used for fix the tolerance to inconclusive results. |
java.lang.String |
getServerAddr()
This method return the Tester's Bootstrap addresses. |
int |
getSleep()
Return the test actions inactivity time for the synchronization. |
int |
getStationTreeTrace()
1 to show traces during the station tree building, 0 by default. |
java.lang.String |
getTimeformat()
Return the time format used for logging |
int |
getTreeOrder()
Return the BTree order, if we are in distributed architecture. |
int |
getTreeStrategy()
Return the BTree strategy, if we are in distributed architecture. |
int |
getTreeWaitForMethod()
Return the value of the property that fix in millisecond the treetester's a specific waiting time for the synchronization. |
int |
getWaitForMethod()
Return in millisecond the tester's waiting time for the synchronization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TesterUtil instance
| Constructor Detail |
|---|
public TesterUtil(java.io.InputStream is)
public TesterUtil(java.util.Properties p)
| Method Detail |
|---|
public int getExpectedTesters()
public int getPeerName()
public java.lang.String getServerAddr()
public java.lang.String getLogfile()
public java.lang.String getDateformat()
public java.lang.String getTimeformat()
public java.lang.String getDelimiter()
public java.lang.String getLogfolder()
public int getRelaxIndex()
public int getPort()
public int getObjects()
public int getSleep()
public java.lang.String getBootstrap()
public int getBootstrapPort()
public int getWaitForMethod()
public int getLoopToFail()
public int getChurnPercentage()
public java.util.logging.Level getLogLevel()
public int getTreeOrder()
public int getTreeStrategy()
public int getCoordinationType()
public int getTreeWaitForMethod()
public int getStationTreeTrace()
public java.lang.String getHostsFilePath()
public int getRegistryPort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||