Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/CodesPerSecondGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/CodesPerSecondGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/CodesPerSecondGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/CodesPerSecondGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,83 +1,83 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.processor.TimeRateAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
-import org.apache.jmeter.report.processor.graph.CodeSeriesSelector;
-import org.apache.jmeter.report.processor.graph.CountValueSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
-
-/**
- * The class HitsPerSecondGraphConsumer provides a graph to visualize hits rate
- * per second.
- *
- * @since 2.14
- */
-public class CodesPerSecondGraphConsumer extends AbstractOverTimeGraphConsumer {
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #createTimeStampKeysSelector()
- */
- @Override
- protected TimeStampKeysSelector createTimeStampKeysSelector() {
- TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
- keysSelector.setSelectBeginTime(false);
- return keysSelector;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new TimeRateAggregatorFactory(), new CodeSeriesSelector(),
- new CountValueSelector(), false, false));
- return groupInfos;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #setGranularity(long)
- */
- @Override
- public void setGranularity(long granularity) {
- super.setGranularity(granularity);
- // Override the granularity of the aggregators factory
- ((TimeRateAggregatorFactory) getGroupInfos().get(
- AbstractGraphConsumer.DEFAULT_GROUP).getAggregatorFactory())
- .setGranularity(granularity);
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.processor.TimeRateAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
+import org.apache.jmeter.report.processor.graph.CodeSeriesSelector;
+import org.apache.jmeter.report.processor.graph.CountValueSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
+
+/**
+ * The class HitsPerSecondGraphConsumer provides a graph to visualize hits rate
+ * per second.
+ *
+ * @since 2.14
+ */
+public class CodesPerSecondGraphConsumer extends AbstractOverTimeGraphConsumer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #createTimeStampKeysSelector()
+ */
+ @Override
+ protected TimeStampKeysSelector createTimeStampKeysSelector() {
+ TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
+ keysSelector.setSelectBeginTime(false);
+ return keysSelector;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new TimeRateAggregatorFactory(), new CodeSeriesSelector(),
+ new CountValueSelector(), false, false));
+ return groupInfos;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #setGranularity(long)
+ */
+ @Override
+ public void setGranularity(long granularity) {
+ super.setGranularity(granularity);
+ // Override the granularity of the aggregators factory
+ ((TimeRateAggregatorFactory) getGroupInfos().get(
+ AbstractGraphConsumer.DEFAULT_GROUP).getAggregatorFactory())
+ .setGranularity(granularity);
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/CodesPerSecondGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/HitsPerSecondGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/HitsPerSecondGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/HitsPerSecondGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/HitsPerSecondGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,99 +1,99 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.processor.TimeRateAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
-import org.apache.jmeter.report.processor.graph.CountValueSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.StaticSeriesSelector;
-import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
-
-/**
- * The class HitsPerSecondGraphConsumer provides a graph to visualize hits rate
- * per second.
- *
- * @since 2.14
- */
-public class HitsPerSecondGraphConsumer extends AbstractOverTimeGraphConsumer {
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #createTimeStampKeysSelector()
- */
- @Override
- protected TimeStampKeysSelector createTimeStampKeysSelector() {
- TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
- keysSelector.setSelectBeginTime(true);
- return keysSelector;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new TimeRateAggregatorFactory(), new StaticSeriesSelector(),
- new CountValueSelector(), false, false));
- return groupInfos;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #setGranularity(long)
- */
- @Override
- public void setGranularity(long granularity) {
- super.setGranularity(granularity);
- // Override the granularity of the aggregators factory
- ((TimeRateAggregatorFactory) getGroupInfos().get(
- AbstractGraphConsumer.DEFAULT_GROUP).getAggregatorFactory())
- .setGranularity(granularity);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.AbstractSampleConsumer#setName
- * (java.lang.String)
- */
- @Override
- public void setName(String name) {
- super.setName(name);
- // Override the series name with the name of the graph
- ((StaticSeriesSelector) getGroupInfos().get(
- AbstractGraphConsumer.DEFAULT_GROUP).getSeriesSelector())
- .setSeriesName(name);
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.processor.TimeRateAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
+import org.apache.jmeter.report.processor.graph.CountValueSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.StaticSeriesSelector;
+import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
+
+/**
+ * The class HitsPerSecondGraphConsumer provides a graph to visualize hits rate
+ * per second.
+ *
+ * @since 2.14
+ */
+public class HitsPerSecondGraphConsumer extends AbstractOverTimeGraphConsumer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #createTimeStampKeysSelector()
+ */
+ @Override
+ protected TimeStampKeysSelector createTimeStampKeysSelector() {
+ TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
+ keysSelector.setSelectBeginTime(true);
+ return keysSelector;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new TimeRateAggregatorFactory(), new StaticSeriesSelector(),
+ new CountValueSelector(), false, false));
+ return groupInfos;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #setGranularity(long)
+ */
+ @Override
+ public void setGranularity(long granularity) {
+ super.setGranularity(granularity);
+ // Override the granularity of the aggregators factory
+ ((TimeRateAggregatorFactory) getGroupInfos().get(
+ AbstractGraphConsumer.DEFAULT_GROUP).getAggregatorFactory())
+ .setGranularity(granularity);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.AbstractSampleConsumer#setName
+ * (java.lang.String)
+ */
+ @Override
+ public void setName(String name) {
+ super.setName(name);
+ // Override the series name with the name of the graph
+ ((StaticSeriesSelector) getGroupInfos().get(
+ AbstractGraphConsumer.DEFAULT_GROUP).getSeriesSelector())
+ .setSeriesName(name);
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/HitsPerSecondGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyOverTimeGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyOverTimeGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyOverTimeGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyOverTimeGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,67 +1,67 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.processor.MeanAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.LatencyValueSelector;
-import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
-import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
-
-/**
- * The class LatencyOverTimeGraphConsumer provides a graph to visualize latency
- * rate over time.
- *
- * @since 2.14
- */
-public class LatencyOverTimeGraphConsumer extends AbstractOverTimeGraphConsumer {
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #createTimeStampKeysSelector()
- */
- @Override
- protected TimeStampKeysSelector createTimeStampKeysSelector() {
- TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
- keysSelector.setSelectBeginTime(false);
- return keysSelector;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>();
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new MeanAggregatorFactory(), new NameSeriesSelector(),
- new LatencyValueSelector(), false, false));
- return groupInfos;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.processor.MeanAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.LatencyValueSelector;
+import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
+import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
+
+/**
+ * The class LatencyOverTimeGraphConsumer provides a graph to visualize latency
+ * rate over time.
+ *
+ * @since 2.14
+ */
+public class LatencyOverTimeGraphConsumer extends AbstractOverTimeGraphConsumer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #createTimeStampKeysSelector()
+ */
+ @Override
+ protected TimeStampKeysSelector createTimeStampKeysSelector() {
+ TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
+ keysSelector.setSelectBeginTime(false);
+ return keysSelector;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>();
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new MeanAggregatorFactory(), new NameSeriesSelector(),
+ new LatencyValueSelector(), false, false));
+ return groupInfos;
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyOverTimeGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyVSRequestGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyVSRequestGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyVSRequestGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyVSRequestGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,73 +1,73 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.core.Sample;
-import org.apache.jmeter.report.processor.MedianAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractVersusRequestsGraphConsumer;
-import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.LatencyValueSelector;
-import org.apache.jmeter.report.processor.graph.StatusSeriesSelector;
-
-/**
- * The class ResponseTimeVSRequestGraphConsumer provides a graph to visualize
- * ...
- *
- * @since 2.14
- */
-public class LatencyVSRequestGraphConsumer extends
- AbstractVersusRequestsGraphConsumer {
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
- * createKeysSelector()
- */
- @Override
- protected GraphKeysSelector createKeysSelector() {
- return new GraphKeysSelector() {
-
- @Override
- public Double select(Sample sample) {
- return sample
- .getDouble(AbstractVersusRequestsGraphConsumer.TIME_INTERVAL_LABEL);
- }
- };
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new MedianAggregatorFactory(), new StatusSeriesSelector(),
- new LatencyValueSelector(), false, false));
- return groupInfos;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.core.Sample;
+import org.apache.jmeter.report.processor.MedianAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractVersusRequestsGraphConsumer;
+import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.LatencyValueSelector;
+import org.apache.jmeter.report.processor.graph.StatusSeriesSelector;
+
+/**
+ * The class ResponseTimeVSRequestGraphConsumer provides a graph to visualize
+ * ...
+ *
+ * @since 2.14
+ */
+public class LatencyVSRequestGraphConsumer extends
+ AbstractVersusRequestsGraphConsumer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
+ * createKeysSelector()
+ */
+ @Override
+ protected GraphKeysSelector createKeysSelector() {
+ return new GraphKeysSelector() {
+
+ @Override
+ public Double select(Sample sample) {
+ return sample
+ .getDouble(AbstractVersusRequestsGraphConsumer.TIME_INTERVAL_LABEL);
+ }
+ };
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new MedianAggregatorFactory(), new StatusSeriesSelector(),
+ new LatencyValueSelector(), false, false));
+ return groupInfos;
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/LatencyVSRequestGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,111 +1,111 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.core.Sample;
-import org.apache.jmeter.report.processor.MapResultData;
-import org.apache.jmeter.report.processor.SumAggregatorFactory;
-import org.apache.jmeter.report.processor.ValueResultData;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
-import org.apache.jmeter.report.processor.graph.CountValueSelector;
-import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
-
-/**
- * The class ResponseTimeDistributionGraphConsumer provides a graph to visualize
- * the distribution of the average response time per sample
- *
- * @since 2.14
- */
-public class ResponseTimeDistributionGraphConsumer extends
- AbstractGraphConsumer {
-
- private long granularity = 1L;
-
- /**
- * Gets the granularity.
- *
- * @return the granularity
- */
- public final long getGranularity() {
- return granularity;
- }
-
- /**
- * @param granularity
- * the granularity to set
- */
- public final void setGranularity(long granularity) {
- this.granularity = granularity;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createKeysSelector()
- */
- @Override
- protected final GraphKeysSelector createKeysSelector() {
- return new GraphKeysSelector() {
-
- @Override
- public Double select(Sample sample) {
- long elapsed = sample.getElapsedTime();
- return (double) (elapsed - elapsed % granularity);
-
- }
- };
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
-
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new SumAggregatorFactory(), new NameSeriesSelector(),
- new CountValueSelector(), false, false));
-
- return groupInfos;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
- * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
- */
- @Override
- protected void initializeExtraResults(MapResultData parentResult) {
- parentResult.setResult(
- AbstractOverTimeGraphConsumer.RESULT_CTX_GRANULARITY,
- new ValueResultData(granularity));
-
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.core.Sample;
+import org.apache.jmeter.report.processor.MapResultData;
+import org.apache.jmeter.report.processor.SumAggregatorFactory;
+import org.apache.jmeter.report.processor.ValueResultData;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
+import org.apache.jmeter.report.processor.graph.CountValueSelector;
+import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
+
+/**
+ * The class ResponseTimeDistributionGraphConsumer provides a graph to visualize
+ * the distribution of the average response time per sample
+ *
+ * @since 2.14
+ */
+public class ResponseTimeDistributionGraphConsumer extends
+ AbstractGraphConsumer {
+
+ private long granularity = 1L;
+
+ /**
+ * Gets the granularity.
+ *
+ * @return the granularity
+ */
+ public final long getGranularity() {
+ return granularity;
+ }
+
+ /**
+ * @param granularity
+ * the granularity to set
+ */
+ public final void setGranularity(long granularity) {
+ this.granularity = granularity;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createKeysSelector()
+ */
+ @Override
+ protected final GraphKeysSelector createKeysSelector() {
+ return new GraphKeysSelector() {
+
+ @Override
+ public Double select(Sample sample) {
+ long elapsed = sample.getElapsedTime();
+ return (double) (elapsed - elapsed % granularity);
+
+ }
+ };
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new SumAggregatorFactory(), new NameSeriesSelector(),
+ new CountValueSelector(), false, false));
+
+ return groupInfos;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
+ * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
+ */
+ @Override
+ protected void initializeExtraResults(MapResultData parentResult) {
+ parentResult.setResult(
+ AbstractOverTimeGraphConsumer.RESULT_CTX_GRANULARITY,
+ new ValueResultData(granularity));
+
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeOverTimeGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeOverTimeGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeOverTimeGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeOverTimeGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,68 +1,68 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.processor.MeanAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
-import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
-import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
-
-/**
- * The class HitsPerSecondGraphConsumer provides a graph to visualize hits rate
- * per second.
- *
- * @since 2.14
- */
-public class ResponseTimeOverTimeGraphConsumer extends
- AbstractOverTimeGraphConsumer {
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #createTimeStampKeysSelector()
- */
- @Override
- protected TimeStampKeysSelector createTimeStampKeysSelector() {
- TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
- keysSelector.setSelectBeginTime(false);
- return keysSelector;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new MeanAggregatorFactory(), new NameSeriesSelector(),
- new ElapsedTimeValueSelector(), false, false));
- return groupInfos;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.processor.MeanAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
+import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
+import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
+
+/**
+ * The class HitsPerSecondGraphConsumer provides a graph to visualize hits rate
+ * per second.
+ *
+ * @since 2.14
+ */
+public class ResponseTimeOverTimeGraphConsumer extends
+ AbstractOverTimeGraphConsumer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #createTimeStampKeysSelector()
+ */
+ @Override
+ protected TimeStampKeysSelector createTimeStampKeysSelector() {
+ TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
+ keysSelector.setSelectBeginTime(false);
+ return keysSelector;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new MeanAggregatorFactory(), new NameSeriesSelector(),
+ new ElapsedTimeValueSelector(), false, false));
+ return groupInfos;
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeOverTimeGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePerSampleGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePerSampleGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePerSampleGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePerSampleGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,124 +1,124 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.processor.ListResultData;
-import org.apache.jmeter.report.processor.MapResultData;
-import org.apache.jmeter.report.processor.PercentileAggregatorFactory;
-import org.apache.jmeter.report.processor.ValueResultData;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
-import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.IndexedNameSelector;
-import org.apache.jmeter.report.processor.graph.StaticSeriesSelector;
-import org.apache.jmeter.util.JMeterUtils;
-
-/**
- * The class ResponseTimePerSampleGraphConsumer provides a graph to visualize
- * percentiles of response time for each sample name.
- *
- * @since 2.14
- */
-public class ResponseTimePerSampleGraphConsumer extends AbstractGraphConsumer {
-
- private static final String RESPONSE_TIME_PER_SAMPLE_SERIES_FORMAT = "Percentile %d";
-
- /**
- * Instantiates a new response time per sample graph consumer.
- */
- public ResponseTimePerSampleGraphConsumer() {
- setRevertKeysAndValues(true);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createKeysSelector()
- */
- @Override
- protected final GraphKeysSelector createKeysSelector() {
- return new IndexedNameSelector();
- }
-
- /**
- * Creates the group info for elapsed time percentile depending on jmeter
- * properties.
- *
- * @param propertyKey
- * the property key
- * @param defaultValue
- * the default value
- * @return the group info
- */
- private GroupInfo createGroupInfo(String propertyKey, int defaultValue) {
- int property = JMeterUtils.getPropDefault(propertyKey, defaultValue);
- PercentileAggregatorFactory factory = new PercentileAggregatorFactory();
- factory.setPercentileIndex(property);
- StaticSeriesSelector seriesSelector = new StaticSeriesSelector();
- seriesSelector.setSeriesName(String.format(
- RESPONSE_TIME_PER_SAMPLE_SERIES_FORMAT, property));
-
- return new GroupInfo(factory, seriesSelector,
- new ElapsedTimeValueSelector(), false, false);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(2);
-
- groupInfos.put("aggregate_rpt_pct1",
- createGroupInfo("aggregate_rpt_pct1", 90));
-
- groupInfos.put("aggregate_rpt_pct2",
- createGroupInfo("aggregate_rpt_pct2", 95));
-
- groupInfos.put("aggregate_rpt_pct3",
- createGroupInfo("aggregate_rpt_pct3", 99));
-
- return groupInfos;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
- * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
- */
- @Override
- protected void initializeExtraResults(MapResultData parentResult) {
- ListResultData samples = new ListResultData();
- IndexedNameSelector indexedNameSelector = (IndexedNameSelector) getKeysSelector();
- int size = indexedNameSelector.getNames().size();
- for (int i = 0; i < size; i++) {
- samples.addResult(new ValueResultData(indexedNameSelector
- .getNames().get(i)));
- }
- parentResult.setResult("sampleNames", samples);
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.processor.ListResultData;
+import org.apache.jmeter.report.processor.MapResultData;
+import org.apache.jmeter.report.processor.PercentileAggregatorFactory;
+import org.apache.jmeter.report.processor.ValueResultData;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
+import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.IndexedNameSelector;
+import org.apache.jmeter.report.processor.graph.StaticSeriesSelector;
+import org.apache.jmeter.util.JMeterUtils;
+
+/**
+ * The class ResponseTimePerSampleGraphConsumer provides a graph to visualize
+ * percentiles of response time for each sample name.
+ *
+ * @since 2.14
+ */
+public class ResponseTimePerSampleGraphConsumer extends AbstractGraphConsumer {
+
+ private static final String RESPONSE_TIME_PER_SAMPLE_SERIES_FORMAT = "Percentile %d";
+
+ /**
+ * Instantiates a new response time per sample graph consumer.
+ */
+ public ResponseTimePerSampleGraphConsumer() {
+ setRevertKeysAndValues(true);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createKeysSelector()
+ */
+ @Override
+ protected final GraphKeysSelector createKeysSelector() {
+ return new IndexedNameSelector();
+ }
+
+ /**
+ * Creates the group info for elapsed time percentile depending on jmeter
+ * properties.
+ *
+ * @param propertyKey
+ * the property key
+ * @param defaultValue
+ * the default value
+ * @return the group info
+ */
+ private GroupInfo createGroupInfo(String propertyKey, int defaultValue) {
+ int property = JMeterUtils.getPropDefault(propertyKey, defaultValue);
+ PercentileAggregatorFactory factory = new PercentileAggregatorFactory();
+ factory.setPercentileIndex(property);
+ StaticSeriesSelector seriesSelector = new StaticSeriesSelector();
+ seriesSelector.setSeriesName(String.format(
+ RESPONSE_TIME_PER_SAMPLE_SERIES_FORMAT, property));
+
+ return new GroupInfo(factory, seriesSelector,
+ new ElapsedTimeValueSelector(), false, false);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(2);
+
+ groupInfos.put("aggregate_rpt_pct1",
+ createGroupInfo("aggregate_rpt_pct1", 90));
+
+ groupInfos.put("aggregate_rpt_pct2",
+ createGroupInfo("aggregate_rpt_pct2", 95));
+
+ groupInfos.put("aggregate_rpt_pct3",
+ createGroupInfo("aggregate_rpt_pct3", 99));
+
+ return groupInfos;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
+ * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
+ */
+ @Override
+ protected void initializeExtraResults(MapResultData parentResult) {
+ ListResultData samples = new ListResultData();
+ IndexedNameSelector indexedNameSelector = (IndexedNameSelector) getKeysSelector();
+ int size = indexedNameSelector.getNames().size();
+ for (int i = 0; i < size; i++) {
+ samples.addResult(new ValueResultData(indexedNameSelector
+ .getNames().get(i)));
+ }
+ parentResult.setResult("sampleNames", samples);
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePerSampleGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,90 +1,90 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.core.Sample;
-import org.apache.jmeter.report.processor.MapResultData;
-import org.apache.jmeter.report.processor.SumAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.CountValueSelector;
-import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
-
-/**
- * The Class ResponseTimePercentilesGraphConsumer.
- *
- * @since 2.14
- */
-public class ResponseTimePercentilesGraphConsumer extends AbstractGraphConsumer {
-
- /**
- * Instantiates a new response time percentiles graph consumer.
- */
- public ResponseTimePercentilesGraphConsumer() {
- setRenderPercentiles(true);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createKeysSelector()
- */
- @Override
- protected final GraphKeysSelector createKeysSelector() {
- return new GraphKeysSelector() {
-
- @Override
- public Double select(Sample sample) {
- return (double) sample.getElapsedTime();
- }
- };
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
-
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new SumAggregatorFactory(), new NameSeriesSelector(),
- new CountValueSelector(), false, false));
-
- return groupInfos;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
- * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
- */
- @Override
- protected void initializeExtraResults(MapResultData parentResult) {
- // do nothing
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.core.Sample;
+import org.apache.jmeter.report.processor.MapResultData;
+import org.apache.jmeter.report.processor.SumAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.CountValueSelector;
+import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
+
+/**
+ * The Class ResponseTimePercentilesGraphConsumer.
+ *
+ * @since 2.14
+ */
+public class ResponseTimePercentilesGraphConsumer extends AbstractGraphConsumer {
+
+ /**
+ * Instantiates a new response time percentiles graph consumer.
+ */
+ public ResponseTimePercentilesGraphConsumer() {
+ setRenderPercentiles(true);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createKeysSelector()
+ */
+ @Override
+ protected final GraphKeysSelector createKeysSelector() {
+ return new GraphKeysSelector() {
+
+ @Override
+ public Double select(Sample sample) {
+ return (double) sample.getElapsedTime();
+ }
+ };
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new SumAggregatorFactory(), new NameSeriesSelector(),
+ new CountValueSelector(), false, false));
+
+ return groupInfos;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
+ * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
+ */
+ @Override
+ protected void initializeExtraResults(MapResultData parentResult) {
+ // do nothing
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimePercentilesGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeVSRequestGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeVSRequestGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeVSRequestGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeVSRequestGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,73 +1,73 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.core.Sample;
-import org.apache.jmeter.report.processor.MedianAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractVersusRequestsGraphConsumer;
-import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
-import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.StatusSeriesSelector;
-
-/**
- * The class ResponseTimeVSRequestGraphConsumer provides a graph to visualize
- * ...
- *
- * @since 2.14
- */
-public class ResponseTimeVSRequestGraphConsumer extends
- AbstractVersusRequestsGraphConsumer {
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
- * createKeysSelector()
- */
- @Override
- protected GraphKeysSelector createKeysSelector() {
- return new GraphKeysSelector() {
-
- @Override
- public Double select(Sample sample) {
- return sample
- .getDouble(AbstractVersusRequestsGraphConsumer.TIME_INTERVAL_LABEL);
- }
- };
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new MedianAggregatorFactory(), new StatusSeriesSelector(),
- new ElapsedTimeValueSelector(), false, false));
- return groupInfos;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.core.Sample;
+import org.apache.jmeter.report.processor.MedianAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractVersusRequestsGraphConsumer;
+import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
+import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.StatusSeriesSelector;
+
+/**
+ * The class ResponseTimeVSRequestGraphConsumer provides a graph to visualize
+ * ...
+ *
+ * @since 2.14
+ */
+public class ResponseTimeVSRequestGraphConsumer extends
+ AbstractVersusRequestsGraphConsumer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
+ * createKeysSelector()
+ */
+ @Override
+ protected GraphKeysSelector createKeysSelector() {
+ return new GraphKeysSelector() {
+
+ @Override
+ public Double select(Sample sample) {
+ return sample
+ .getDouble(AbstractVersusRequestsGraphConsumer.TIME_INTERVAL_LABEL);
+ }
+ };
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new MedianAggregatorFactory(), new StatusSeriesSelector(),
+ new ElapsedTimeValueSelector(), false, false));
+ return groupInfos;
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeVSRequestGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TimeVSThreadGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TimeVSThreadGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TimeVSThreadGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TimeVSThreadGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,83 +1,83 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.core.Sample;
-import org.apache.jmeter.report.processor.MapResultData;
-import org.apache.jmeter.report.processor.MeanAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
-import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
-
-/**
- * The class TimeVSThreadGraphConsumer provides a graph to visualize ...
- *
- * @since 2.14
- */
-public class TimeVSThreadGraphConsumer extends AbstractGraphConsumer {
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createKeysSelector()
- */
- @Override
- protected final GraphKeysSelector createKeysSelector() {
- return new GraphKeysSelector() {
-
- @Override
- public Double select(Sample sample) {
- return (double) sample.getAllThreads();
- }
- };
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
-
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new MeanAggregatorFactory(), new NameSeriesSelector(),
- new ElapsedTimeValueSelector(), false, false));
-
- return groupInfos;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
- * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
- */
- @Override
- protected void initializeExtraResults(MapResultData parentResult) {
- // do nothing
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.core.Sample;
+import org.apache.jmeter.report.processor.MapResultData;
+import org.apache.jmeter.report.processor.MeanAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.ElapsedTimeValueSelector;
+import org.apache.jmeter.report.processor.graph.GraphKeysSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.NameSeriesSelector;
+
+/**
+ * The class TimeVSThreadGraphConsumer provides a graph to visualize ...
+ *
+ * @since 2.14
+ */
+public class TimeVSThreadGraphConsumer extends AbstractGraphConsumer {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createKeysSelector()
+ */
+ @Override
+ protected final GraphKeysSelector createKeysSelector() {
+ return new GraphKeysSelector() {
+
+ @Override
+ public Double select(Sample sample) {
+ return (double) sample.getAllThreads();
+ }
+ };
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new MeanAggregatorFactory(), new NameSeriesSelector(),
+ new ElapsedTimeValueSelector(), false, false));
+
+ return groupInfos;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.processor.graph.AbstractGraphConsumer#
+ * initializeExtraResults(org.apache.jmeter.report.processor.MapResultData)
+ */
+ @Override
+ protected void initializeExtraResults(MapResultData parentResult) {
+ // do nothing
+ }
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TimeVSThreadGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TransactionsPerSecondGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TransactionsPerSecondGraphConsumer.java?rev=1719185&r1=1719184&r2=1719185&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TransactionsPerSecondGraphConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TransactionsPerSecondGraphConsumer.java Thu Dec 10 19:10:06 2015
@@ -1,101 +1,101 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.jmeter.report.processor.graph.impl;
-
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.jmeter.report.core.Sample;
-import org.apache.jmeter.report.processor.TimeRateAggregatorFactory;
-import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
-import org.apache.jmeter.report.processor.graph.AbstractSeriesSelector;
-import org.apache.jmeter.report.processor.graph.CountValueSelector;
-import org.apache.jmeter.report.processor.graph.GroupInfo;
-import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
-
-/**
- * The class HitsPerSecondGraphConsumer provides a graph to visualize
- * transactions rate per second.
- *
- * @since 2.14
- */
-public class TransactionsPerSecondGraphConsumer extends
- AbstractOverTimeGraphConsumer {
-
- private static final String STATUS_SERIES_FORMAT = "%s-%s";
- private static final String SUCCESS_SERIES_SUFFIX = "success";
- private static final String FAILURE_SERIES_SUFFIX = "failure";
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #createTimeStampKeysSelector()
- */
- @Override
- protected TimeStampKeysSelector createTimeStampKeysSelector() {
- TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
- keysSelector.setSelectBeginTime(false);
- return keysSelector;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
- * createGroupInfos()
- */
- @Override
- protected Map<String, GroupInfo> createGroupInfos() {
- HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
- groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
- new TimeRateAggregatorFactory(), new AbstractSeriesSelector(
- true) {
-
- @Override
- public Iterable<String> select(Sample sample) {
- String label = String.format(STATUS_SERIES_FORMAT,
- sample.getName(),
- sample.getSuccess() ? SUCCESS_SERIES_SUFFIX
- : FAILURE_SERIES_SUFFIX);
- return Arrays.asList(label);
- }
- }, new CountValueSelector(), false, false));
- return groupInfos;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
- * #setGranularity(long)
- */
- @Override
- public void setGranularity(long granularity) {
- super.setGranularity(granularity);
- // Override the granularity of the aggregators factory
- ((TimeRateAggregatorFactory) getGroupInfos().get(
- AbstractGraphConsumer.DEFAULT_GROUP).getAggregatorFactory())
- .setGranularity(granularity);
- }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.jmeter.report.processor.graph.impl;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.jmeter.report.core.Sample;
+import org.apache.jmeter.report.processor.TimeRateAggregatorFactory;
+import org.apache.jmeter.report.processor.graph.AbstractGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractOverTimeGraphConsumer;
+import org.apache.jmeter.report.processor.graph.AbstractSeriesSelector;
+import org.apache.jmeter.report.processor.graph.CountValueSelector;
+import org.apache.jmeter.report.processor.graph.GroupInfo;
+import org.apache.jmeter.report.processor.graph.TimeStampKeysSelector;
+
+/**
+ * The class HitsPerSecondGraphConsumer provides a graph to visualize
+ * transactions rate per second.
+ *
+ * @since 2.14
+ */
+public class TransactionsPerSecondGraphConsumer extends
+ AbstractOverTimeGraphConsumer {
+
+ private static final String STATUS_SERIES_FORMAT = "%s-%s";
+ private static final String SUCCESS_SERIES_SUFFIX = "success";
+ private static final String FAILURE_SERIES_SUFFIX = "failure";
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #createTimeStampKeysSelector()
+ */
+ @Override
+ protected TimeStampKeysSelector createTimeStampKeysSelector() {
+ TimeStampKeysSelector keysSelector = new TimeStampKeysSelector();
+ keysSelector.setSelectBeginTime(false);
+ return keysSelector;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
+ * createGroupInfos()
+ */
+ @Override
+ protected Map<String, GroupInfo> createGroupInfos() {
+ HashMap<String, GroupInfo> groupInfos = new HashMap<>(1);
+ groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(
+ new TimeRateAggregatorFactory(), new AbstractSeriesSelector(
+ true) {
+
+ @Override
+ public Iterable<String> select(Sample sample) {
+ String label = String.format(STATUS_SERIES_FORMAT,
+ sample.getName(),
+ sample.getSuccess() ? SUCCESS_SERIES_SUFFIX
+ : FAILURE_SERIES_SUFFIX);
+ return Arrays.asList(label);
+ }
+ }, new CountValueSelector(), false, false));
+ return groupInfos;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.apache.jmeter.report.csv.processor.impl.AbstractOverTimeGraphConsumer
+ * #setGranularity(long)
+ */
+ @Override
+ public void setGranularity(long granularity) {
+ super.setGranularity(granularity);
+ // Override the granularity of the aggregators factory
+ ((TimeRateAggregatorFactory) getGroupInfos().get(
+ AbstractGraphConsumer.DEFAULT_GROUP).getAggregatorFactory())
+ .setGranularity(granularity);
+ }
+
+}
Propchange: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/TransactionsPerSecondGraphConsumer.java
------------------------------------------------------------------------------
svn:eol-style = native
|