org.apache.commons.performance.http
Class HttpSoak
java.lang.Object
org.apache.commons.performance.LoadGenerator
org.apache.commons.performance.http.HttpSoak
public class HttpSoak
- extends LoadGenerator
Simple http load / performance tester, providing another LoadGenerator
example.
Uses Commons Digester to parse and load configuration and spawns
HTTPClientThread instances to generate load and gather statistics.
Fields inherited from class org.apache.commons.performance.LoadGenerator |
configFile, cycleType, delayType, digester, logger, maxDelay, minDelay, peakPeriod, rampPeriod, rampType, sigma, troughPeriod |
Method Summary |
protected void |
configure()
Add http client configuration to parameters loaded by super. |
void |
configureHttp(String url,
String method,
String socketTimeout,
String successKey)
|
protected void |
init()
Nothing to do here yet |
protected ClientThread |
makeClientThread(long iterations,
long minDelay,
long maxDelay,
double sigma,
String delayType,
long rampPeriod,
long peakPeriod,
long troughPeriod,
String cycleType,
String rampType,
Logger logger,
Statistics stats)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpSoak
public HttpSoak()
init
protected void init()
throws Exception
- Nothing to do here yet
- Overrides:
init
in class LoadGenerator
- Throws:
Exception
makeClientThread
protected ClientThread makeClientThread(long iterations,
long minDelay,
long maxDelay,
double sigma,
String delayType,
long rampPeriod,
long peakPeriod,
long troughPeriod,
String cycleType,
String rampType,
Logger logger,
Statistics stats)
- Specified by:
makeClientThread
in class LoadGenerator
configure
protected void configure()
throws Exception
- Add http client configuration to parameters loaded by super.
Also set config file name.
- Overrides:
configure
in class LoadGenerator
- Throws:
Exception
configureHttp
public void configureHttp(String url,
String method,
String socketTimeout,
String successKey)
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.