org.rutil.loadtest
Class RequestBoundLoadGenerator
java.lang.Object
org.rutil.loadtest.LoadGenerator
org.rutil.loadtest.RequestBoundLoadGenerator
public class RequestBoundLoadGenerator
- extends LoadGenerator
A request based implementation of LoadGenerator. This class submits a fixed number
of test runner requests (concurrently) at fixed intervals until the total run-time meets or exceeds the
"duration".
This is useful in cases where a constant load needs to be thrown at the server and measure
the performance/latency etc.
- Author:
- mohan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RequestBoundLoadGenerator
public RequestBoundLoadGenerator(java.lang.String name,
TestRunner testRunner)
getRequestIntervalInSecs
public int getRequestIntervalInSecs()
setRequestIntervalInSecs
public void setRequestIntervalInSecs(int requestIntervalInSecs)
getRequestsPerInterval
public int getRequestsPerInterval()
setRequestsPerInterval
public void setRequestsPerInterval(int requestsPerInterval)
getMaxConcurrent
public int getMaxConcurrent()
setMaxConcurrent
public void setMaxConcurrent(int maxConcurrent)
doStart
protected Stats doStart()
- Specified by:
doStart in class LoadGenerator
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object