|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectParkNPark.common.CommandLineParser
public class CommandLineParser
Parses a command line using GNU GetOpt
| Field Summary | |
|---|---|
protected int |
interRequestTime
The inter-request time in this test run in milliseconds |
protected int |
numClients
The number of clients in this test run |
protected int |
replySize
The reply size of the server messages in this test run in bytes |
| Constructor Summary | |
|---|---|
CommandLineParser()
|
|
| Method Summary | |
|---|---|
int |
getInterRequestTime()
Returns the inter-request time in this test run |
int |
getNumClients()
Returns the number of clients in this test run |
int |
getReplySize()
Returns the reply size of the server messages in this test run |
protected void |
help(String name)
Writes out our command line help text to stdout using the given program name |
boolean |
parseCommandLine(String name,
String[] args)
Parses the given command line for the given program name and returns true if the command line was successfully parsed or false if the program should exit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int replySize
protected int numClients
protected int interRequestTime
| Constructor Detail |
|---|
public CommandLineParser()
| Method Detail |
|---|
public boolean parseCommandLine(String name,
String[] args)
name - The name of the programargs - The arguments passed in from the command line
protected void help(String name)
name - The program name to use when displaying the command line helppublic int getInterRequestTime()
public int getNumClients()
public int getReplySize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||