use of org.apache.jmeter.report.processor.graph.GroupInfo in project jmeter by apache.
the class LatencyVSRequestGraphConsumer method createGroupInfos.
/*
* (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(), // We ignore Transaction Controller results
new LatencyValueSelector(true), false, false));
return groupInfos;
}
use of org.apache.jmeter.report.processor.graph.GroupInfo in project jmeter by apache.
the class ResponseTimeDistributionGraphConsumer method createGroupInfos.
/*
* (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(), // We include Transaction Controller results
new CountValueSelector(false), false, false));
return groupInfos;
}
use of org.apache.jmeter.report.processor.graph.GroupInfo in project jmeter by apache.
the class SyntheticResponseTimeDistributionGraphConsumer method createGroupInfos.
/*
* (non-Javadoc)
*
* @see org.apache.jmeter.report.csv.processor.impl.AbstractGraphConsumer#
* createGroupInfos()
*/
@Override
protected Map<String, GroupInfo> createGroupInfos() {
Map<String, GroupInfo> groupInfos = new HashMap<>(1);
SyntheticSeriesSelector syntheticSeriesSelector = new SyntheticSeriesSelector();
groupInfos.put(AbstractGraphConsumer.DEFAULT_GROUP, new GroupInfo(new SumAggregatorFactory(), syntheticSeriesSelector, // We ignore Transaction Controller results
new CountValueSelector(true), false, false));
return groupInfos;
}
use of org.apache.jmeter.report.processor.graph.GroupInfo in project jmeter by apache.
the class TransactionsPerSecondGraphConsumer method createGroupInfos.
/*
* (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);
}
}, // We include Transaction Controller results
new CountValueSelector(false), false, false));
return groupInfos;
}
use of org.apache.jmeter.report.processor.graph.GroupInfo in project jmeter by apache.
the class ActiveThreadsGraphConsumer method createGroupInfos.
/*
* (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 AbstractSeriesSelector() {
@Override
public Iterable<String> select(Sample sample) {
if (!sample.isEmptyController()) {
String threadName = sample.getThreadName();
int index = threadName.lastIndexOf(" ");
if (index >= 0) {
threadName = threadName.substring(0, index);
}
return Arrays.asList(new String[] { threadName });
} else {
return Collections.<String>emptyList();
}
}
}, new GraphValueSelector() {
@Override
public Double select(String series, Sample sample) {
if (!sample.isEmptyController()) {
return Double.valueOf(sample.getGroupThreads());
} else {
return null;
}
}
}, false, false));
return groupInfos;
}
Aggregations