jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1214774 - in /jmeter/trunk: src/core/org/apache/jmeter/samplers/SampleSenderFactory.java xdocs/changes.xml
Date Thu, 15 Dec 2011 14:25:59 GMT
Author: sebb
Date: Thu Dec 15 14:25:58 2011
New Revision: 1214774

URL: http://svn.apache.org/viewvc?rev=1214774&view=rev
Log:
Bug 52340 - Allow remote sampling mode to be changed at run-time

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java?rev=1214774&r1=1214773&r2=1214774&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java Thu Dec 15 14:25:58
2011
@@ -44,12 +44,6 @@ public class SampleSenderFactory {
 
     private static final String MODE_DISKSTORE = "DiskStore"; // $NON-NLS-1$
 
-    // Support original property name
-    private static final boolean holdSamples = JMeterUtils.getPropDefault("hold_samples",
false); // $NON-NLS-1$
-
-    // Extended property name
-    private static final String type = JMeterUtils.getPropDefault("mode", MODE_STANDARD);
// $NON-NLS-1$
-
     /**
      * Checks for the Jmeter property mode and returns the required class.
      *
@@ -58,6 +52,12 @@ public class SampleSenderFactory {
      *         hold_samples until end of test or batch samples.
      */
     static SampleSender getInstance(RemoteSampleListener listener) {
+        // Support original property name
+        final boolean holdSamples = JMeterUtils.getPropDefault("hold_samples", false); //
$NON-NLS-1$
+
+        // Extended property name
+         final String type = JMeterUtils.getPropDefault("mode", MODE_STANDARD); // $NON-NLS-1$
+
         if (holdSamples || type.equalsIgnoreCase(MODE_HOLD)) {
             HoldSampleSender h = new HoldSampleSender(listener);
             return h;

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1214774&r1=1214773&r2=1214774&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Thu Dec 15 14:25:58 2011
@@ -183,6 +183,7 @@ This behaviour can be changed with prope
 <li>Bug 52022 - In View Results Tree rather than showing just a message if the results
are to big, show as much of the result as are configured</li>
 <li>Bug 52201 - Add option to TableVisualiser to display child samples instead of parent
</li>
 <li>Bug 52214 - Save Responses to a file - improve naming algorithm</li>
+<li>Bug 52340 - Allow remote sampling mode to be changed at run-time</li>
 </ul>
 
 <h3>Timers, Assertions, Config, Pre- &amp; Post-Processors</h3>



Mime
View raw message