|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectParkNPark.tests.RunOne
public class RunOne
Class that runs one test configuration
| Field Summary | |
|---|---|
protected Set<ProcessInfo> |
clients
Our clients |
protected int |
interRequestTime
Time between requests |
protected int |
numClients
Number of clients |
protected static ProcessInfoComparator<ProcessInfo> |
processInfoComparator
Singleton instance of the ProcessInfoComparator |
protected String |
projectRoot
The project root folder |
protected int |
replySize
Size of reply |
protected ProcessInfo |
sacredServer
Our name and replication server |
protected Set<ProcessInfo> |
servers
Our servers |
protected BufferedWriter |
stdErrWriter
A writer for stderr |
| Constructor Summary | |
|---|---|
RunOne(String projectRoot,
int numClients,
int interRequestTime,
int replySize)
Creates a new test case runner |
|
| Method Summary | |
|---|---|
protected void |
ensureOutputFoldersExist()
Ensures that the output folders exist, which the programs write stdout or stderr to, depending on the program |
static void |
main(String[] args)
Run the tests as specified on the command line |
protected void |
populateSet(Set<String> set,
Reader input)
Populates a Set from individual lines of a reader |
void |
run()
Runs this test's configuration by cleaning out any old server instances, starting the name service from scratch, starting the replication manager, starting the servers, starting the clients, waiting for the clients to exit, telling the servers to exit, and waiting for the servers to exit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int numClients
protected int interRequestTime
protected int replySize
protected static final ProcessInfoComparator<ProcessInfo> processInfoComparator
protected Set<ProcessInfo> servers
protected Set<ProcessInfo> clients
protected ProcessInfo sacredServer
protected String projectRoot
protected BufferedWriter stdErrWriter
| Constructor Detail |
|---|
public RunOne(String projectRoot,
int numClients,
int interRequestTime,
int replySize)
throws IOException
projectRoot - The project's root folder to use for this test case runnumClients - The number of clients to use in this test case runinterRequestTime - The amount of time in milliseconds to wait between client invocationsreplySize - The size of the replies from the server in bytes
IOException - Thrown if an IOException is thrown during the processing| Method Detail |
|---|
public static void main(String[] args)
args - The command line arguments
protected void populateSet(Set<String> set,
Reader input)
throws IOException
set - The Set to populateinput - The Reader to read lines from
IOException - Thrown if an IOException arises during processingprotected void ensureOutputFoldersExist()
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||