Author: sebb
Date: Thu Oct 21 12:58:36 2010
New Revision: 1025983

URL: http://svn.apache.org/viewvc?rev=1025983&view=rev
Log:
Bug 50008 - Allow BatchSampleSender to be subclassed

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

Modified: 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/BatchSampleSender.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/BatchSampleSender.java?rev=1025983&r1=1025982&r2=1025983&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/BatchSampleSender.java 
(original)
+++ 
jakarta/jmeter/trunk/src/core/org/apache/jmeter/samplers/BatchSampleSender.java 
Thu Oct 21 12:58:36 2010
@@ -66,13 +66,27 @@ public class BatchSampleSender implement
      * @param listener
      *            that the List of sample events will be sent to.
      */
-    BatchSampleSender(RemoteSampleListener listener) {
+    protected BatchSampleSender(RemoteSampleListener listener) {
         this.listener = listener;
         log.info("Using batching for this run."
                 + " Thresholds: num=" + NUM_SAMPLES_THRESHOLD
                 + ", time=" + TIME_THRESHOLD_MS);
     }
 
+   /**
+    * @return the listener
+    */
+   protected RemoteSampleListener getListener() {
+       return listener;
+   }
+
+   /**
+    * @return the sampleStore
+    */
+   protected List<SampleEvent> getSampleStore() {
+       return sampleStore;
+   }
+
     /**
      * Checks if any sample events are still present in the sampleStore and
      * sends them to the listener. Informs the listener of the testended.

Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=1025983&r1=1025982&r2=1025983&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Thu Oct 21 12:58:36 2010
@@ -149,6 +149,7 @@ To override the default local language f
 
 <h2>Non-functional changes</h2>
 <ul>
+<li>Bug 50008 - Allow BatchSampleSender to be subclassed</li>
 </ul>
 
 </section> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to