ParkNPark.common
Class CommandLineParser

java.lang.Object
  extended by ParkNPark.common.CommandLineParser

public class CommandLineParser
extends Object

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

replySize

protected int replySize
The reply size of the server messages in this test run in bytes


numClients

protected int numClients
The number of clients in this test run


interRequestTime

protected int interRequestTime
The inter-request time in this test run in milliseconds

Constructor Detail

CommandLineParser

public CommandLineParser()
Method Detail

parseCommandLine

public 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

Parameters:
name - The name of the program
args - The arguments passed in from the command line
Returns:
True if the program can continue or false if the program should exit

help

protected void help(String name)
Writes out our command line help text to stdout using the given program name

Parameters:
name - The program name to use when displaying the command line help

getInterRequestTime

public int getInterRequestTime()
Returns the inter-request time in this test run

Returns:
The inter-request time in this test run

getNumClients

public int getNumClients()
Returns the number of clients in this test run

Returns:
The number of clients in this test run

getReplySize

public int getReplySize()
Returns the reply size of the server messages in this test run

Returns:
The reply size of the server messages in this test run