|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--juju.reattore.perfcap.tester.impl.ABTester
Tests a HTTP server using ApacheBench.
Constructor Summary | |
ABTester()
|
Method Summary | |
Results |
go()
Run the test and return the results. |
void |
setCmd(java.lang.String cmd)
The command to use to run ApacheBench, in Message format form. |
void |
setConcurrent(int argConcurrent)
The number of concurrent connections to use with the server. |
void |
setKeepAlive(boolean argKeepAlive)
Enable using HTTP keep-alive during the test. |
void |
setKeepAlive(int val)
Alternative way of enabling keep-alive. |
void |
setTimeLimit(int argTimeLimit)
Time in seconds to run the test for. |
void |
setUrl(java.lang.String argUrl)
The URL to test against. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ABTester()
Method Detail |
public void setKeepAlive(boolean argKeepAlive)
argKeepAlive
- Value to assign to this.keepAlivepublic void setKeepAlive(int val)
val
- 0 for off, non-zero for on.public void setConcurrent(int argConcurrent)
argConcurrent
- Value to assign to this.concurrentpublic void setTimeLimit(int argTimeLimit)
argTimeLimit
- Value to assign to this.timeLimitpublic void setUrl(java.lang.String argUrl)
argUrl
- Value to assign to this.urlpublic void setCmd(java.lang.String cmd)
cmd
- The command to run.public Results go() throws java.lang.Exception
Tester
go
in interface Tester
java.lang.Exception
- on fatal error.Tester
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |