sebb 2003/11/15 18:19:04
Modified: src/protocol/http/org/apache/jmeter/protocol/http/proxy
ProxyControl.java
Log:
Allow user to deselect keep-alive on generated samplers
Revision Changes Path
1.32 +14 -2
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
Index: ProxyControl.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- ProxyControl.java 15 Nov 2003 02:35:51 -0000 1.31
+++ ProxyControl.java 16 Nov 2003 02:19:04 -0000 1.32
@@ -112,13 +112,15 @@
public static final String CAPTURE_HTTP_HEADERS =
"ProxyControlGui.capture_http_headers";
public static final String ADD_ASSERTIONS = "ProxyControlGui.add_assertion";
public static final String ADD_SEPARATORS = "ProxyControlGui.add_separator";
+ public static final String USE_KEEPALIVE = "ProxyControlGui.use_keepalive";
private long lastTime = 0;//When was the last sample seen?
private static final long sampleGap =
- JMeterUtils.getPropDefault("proxy.pause",1000);//Detect if user has pressed a
new link
+ JMeterUtils.getPropDefault("proxy.pause",1000);//Detect if user has
pressed a new link
private boolean addAssertions;
private boolean addSeparators;
+ private boolean useKeepAlive;
public ProxyControl()
{
@@ -156,6 +158,15 @@
setProperty(new BooleanProperty(ADD_ASSERTIONS,b));
}
+ /**
+ * @param b
+ */
+ public void setUseKeepAlive(boolean b)
+ {
+ useKeepAlive=b;
+ setProperty(new BooleanProperty(USE_KEEPALIVE,b));
+ }
+
public void setIncludeList(Collection list)
{
setProperty(new CollectionProperty(INCLUDE_LIST, new HashSet(list)));
@@ -369,6 +380,7 @@
{
removeValuesFromSampler(sampler, urlConfig);
replaceValues(sampler,subConfigs);
+ sampler.setUseKeepAlive(useKeepAlive);
sampler.setProperty(
TestElement.GUI_CLASS,
"org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]