Author: sebb
Date: Wed Sep 14 12:58:52 2011
New Revision: 1170585
URL: http://svn.apache.org/viewvc?rev=1170585&view=rev
Log:
Don't save concurrent pool property if it is the default
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1170585&r1=1170584&r2=1170585&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Wed Sep 14 12:58:52 2011
@@ -150,6 +150,8 @@ public abstract class HTTPSamplerBase ex
public static final String CONCURRENT_POOL = "HTTPSampler.concurrentPool";
// $NON-NLS-1$
+ private static final String CONCURRENT_POOL_DEFAULT = "4"; // default for
concurrent pool (do not change)
+
//- JMX names
public static final boolean BROWSER_COMPATIBLE_MULTIPART_MODE_DEFAULT =
false; // The default setting to be used (i.e. historic)
@@ -1639,17 +1641,18 @@ public abstract class HTTPSamplerBase ex
public void setConcurrentDwn(boolean concurrentDwn) {
setProperty(CONCURRENT_DWN, concurrentDwn, false);
}
+
/**
* Get the pool size for concurrent thread pool to get embedded resources.
*
* @return the pool size
*/
public String getConcurrentPool() {
- return getPropertyAsString(CONCURRENT_POOL,"4");
+ return getPropertyAsString(CONCURRENT_POOL,CONCURRENT_POOL_DEFAULT);
}
public void setConcurrentPool(String poolSize) {
- setProperty(new StringProperty(CONCURRENT_POOL, poolSize));
+ setProperty(CONCURRENT_POOL, poolSize, CONCURRENT_POOL_DEFAULT);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]