ParkNPark.tests
Class RunAll

java.lang.Object
  extended by ParkNPark.tests.RunAll
All Implemented Interfaces:
Runnable

public class RunAll
extends Object
implements Runnable

Runs all 48 test configurations


Field Summary
protected  int detectionTimeout
          The wait timeout to use during fault detections
protected  boolean faultInjection
          Whether or not fault injection is enabled
protected  int faultInjectionMaxDelay
          The maximum delay of the fault injection in milliseconds
protected  int faultInjectionMinDelay
          The minimum delay of the fault injection in milliseconds
protected  int getLotsModeCount
          When not 0, how many invocations of getLotsMode should be performed
private  String jdbcPassword
          The JDBC password
private  String jdbcURL
          The JDBC URL
private  String jdbcUsername
          The JDBC user name
protected  int numServers
          The number of servers in this test run
protected  String projectRoot
          The project root folder
protected  int recoveryTimeout
          The wait timeout to use during fault recoveries
 
Constructor Summary
RunAll(String projectRoot, int numServers, boolean faultInjection, int faultInjectionMinDelay, int faultInjectionMaxDelay, int getLotsMode, int detectionTimeout, int recoveryTimeout, String jdbcURL, String jdbcUsername, String jdbcPassword)
          Creates a new test suite runner for the given project root path
 
Method Summary
static void main(String[] args)
          Runs the entire test suite
 void run()
          Runs the entire test suite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectRoot

protected String projectRoot
The project root folder


faultInjection

protected boolean faultInjection
Whether or not fault injection is enabled


faultInjectionMinDelay

protected int faultInjectionMinDelay
The minimum delay of the fault injection in milliseconds


faultInjectionMaxDelay

protected int faultInjectionMaxDelay
The maximum delay of the fault injection in milliseconds


numServers

protected int numServers
The number of servers in this test run


getLotsModeCount

protected int getLotsModeCount
When not 0, how many invocations of getLotsMode should be performed


recoveryTimeout

protected int recoveryTimeout
The wait timeout to use during fault recoveries


detectionTimeout

protected int detectionTimeout
The wait timeout to use during fault detections


jdbcURL

private String jdbcURL
The JDBC URL


jdbcUsername

private String jdbcUsername
The JDBC user name


jdbcPassword

private String jdbcPassword
The JDBC password

Constructor Detail

RunAll

public RunAll(String projectRoot,
              int numServers,
              boolean faultInjection,
              int faultInjectionMinDelay,
              int faultInjectionMaxDelay,
              int getLotsMode,
              int detectionTimeout,
              int recoveryTimeout,
              String jdbcURL,
              String jdbcUsername,
              String jdbcPassword)
Creates a new test suite runner for the given project root path

Parameters:
projectRoot - The root of the project to use in this test suite run
numServers - The number of servers to run in this test suite instance
faultInjection - True if fault injection is enabled or false if it is disabled
faultInjectionMinDelay - The minimum delay of the fault injector in milliseconds
faultInjectionMaxDelay - The maximum delay of the fault injector in milliseconds
getLotsMode - When not zero, this is the number of iterations to run in getLotsMode on the client. When zero or less, the client is run with the predefined test suite
detectionTimeout - The fault detection timeout value to pass to the replication manager
recoveryTimeout - The fault recovery timeout value to pass to clients
jdbcURL - The JDBC URL to use in the database connection
jdbcUsername - The username to use in the database connection
jdbcPassword - The password to use in the database connection
Method Detail

main

public static void main(String[] args)
Runs the entire test suite

Parameters:
args - Command-line arguments

run

public void run()
Runs the entire test suite

Specified by:
run in interface Runnable