WebServex
Class Stats

java.lang.Object
  |
  +--WebServex.Stats

public class Stats
extends java.lang.Object

Main feature of this class is the collection of Transaction Reports this class should be passed to HTTPClient constructor when HTTPClient is started you can collect statistics. It is imparative to call getNumberOfFails() before invoking other statistical methods.


Field Summary
 java.util.Vector txList
          The list of transactions as vector
 
Constructor Summary
Stats(int i)
          Creates new Statstical storage mechanism for storing transactions generated in HTTPClient the integer parameters is the size of the vector which stores the transactions normally it is # of Clients * # of Repeats
 
Method Summary
protected  void addTx(TransactionReport tx)
          addTx is called by HTTPClient to add new transaction results see TransactionReport documents for details
 int getNumberOf200OK()
          This returns number of times response has "HTTP 1.x 200 OK" in Response Header
 int getNumberOfFails()
          this returns the number of times the transaction did not went on smoothly for details check TransactionReport.strStatus it is compulsory to call this method before accessing any other members of Stats.
 double getResposeTimeAverage()
           
 double getResposeTimeVariance()
           
protected  void responseDump()
          this is for test purposes and dumps all transaction details into console
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txList

public java.util.Vector txList
The list of transactions as vector

Constructor Detail

Stats

public Stats(int i)
Creates new Statstical storage mechanism for storing transactions generated in HTTPClient the integer parameters is the size of the vector which stores the transactions normally it is # of Clients * # of Repeats

Method Detail

addTx

protected void addTx(TransactionReport tx)
addTx is called by HTTPClient to add new transaction results see TransactionReport documents for details


responseDump

protected void responseDump()
this is for test purposes and dumps all transaction details into console


getNumberOfFails

public int getNumberOfFails()
this returns the number of times the transaction did not went on smoothly for details check TransactionReport.strStatus it is compulsory to call this method before accessing any other members of Stats.


getNumberOf200OK

public int getNumberOf200OK()
This returns number of times response has "HTTP 1.x 200 OK" in Response Header


getResposeTimeAverage

public double getResposeTimeAverage()

getResposeTimeVariance

public double getResposeTimeVariance()