|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--WebServex.Stats
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 |
public java.util.Vector txList
Constructor Detail |
public Stats(int i)
Method Detail |
protected void addTx(TransactionReport tx)
protected void responseDump()
public int getNumberOfFails()
public int getNumberOf200OK()
public double getResposeTimeAverage()
public double getResposeTimeVariance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |