jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1722378 - /jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java
Date Wed, 30 Dec 2015 16:53:39 GMT
Author: fschumacher
Date: Wed Dec 30 16:53:39 2015
New Revision: 1722378

URL: http://svn.apache.org/viewvc?rev=1722378&view=rev
Log:
Use addSampleConsumer instead of setSampleConsumer (same functionality). Reorder addition
of Consumers.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java?rev=1722378&r1=1722377&r2=1722378&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java Wed Dec
30 16:53:39 2015
@@ -194,22 +194,19 @@ public class ReportGenerator {
 
         NormalizerSampleConsumer normalizer = new NormalizerSampleConsumer();
         normalizer.setName(NORMALIZER_CONSUMER_NAME);
-        source.addSampleConsumer(normalizer);
 
         normalizer.addSampleConsumer(createBeginDateConsumer());
         normalizer.addSampleConsumer(createEndDateConsumer());
 
         FilterConsumer nameFilter = createNameFilter();
-        normalizer.setSampleConsumer(nameFilter);
-
-        nameFilter.setSampleConsumer(createApdexSummaryConsumer());
-        nameFilter.setSampleConsumer(createRequestsSummaryConsumer());
-        nameFilter.setSampleConsumer(createStatisticsSummaryConsumer());
 
         FilterConsumer excludeControllerFilter = createExcludeControllerFilter();
-        nameFilter.setSampleConsumer(excludeControllerFilter);
 
-        excludeControllerFilter.setSampleConsumer(createErrorsSummaryConsumer());
+        nameFilter.addSampleConsumer(excludeControllerFilter);
+
+        normalizer.addSampleConsumer(nameFilter);
+
+        source.addSampleConsumer(normalizer);
 
         // Get graph configurations
         Map<String, GraphConfiguration> graphConfigurations = configuration
@@ -328,6 +325,7 @@ public class ReportGenerator {
         excludeControllerFilter
                 .setSamplePredicate(new ControllerSamplePredicate());
         excludeControllerFilter.setReverseFilter(true);
+        excludeControllerFilter.addSampleConsumer(createErrorsSummaryConsumer());
         return excludeControllerFilter;
     }
 
@@ -379,6 +377,9 @@ public class ReportGenerator {
                         || filteredSamples.contains(sample.getName());
             }
         });
+        nameFilter.addSampleConsumer(createApdexSummaryConsumer());
+        nameFilter.addSampleConsumer(createRequestsSummaryConsumer());
+        nameFilter.addSampleConsumer(createStatisticsSummaryConsumer());
         return nameFilter;
     }
 



Mime
View raw message