Class EmbeddedStatsSummary
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.engines.EmbeddedStatsSummary
-
- All Implemented Interfaces:
StatsSummary
public class EmbeddedStatsSummary extends Object implements StatsSummary
Contains statistics collected byEmbeddedJmeterEngine.You can use this class to collect additional statistics by extending it and using it with
DslJsr223PostProcessor.- Since:
- 0.37
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmbeddedStatsSummary.EmbeddedTimeMetricSummary
-
Constructor Summary
Constructors Constructor Description EmbeddedStatsSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.apache.jmeter.samplers.SampleResult result)Adds given sample result data to collected statistics.InstantendTime()Gets the instant when the last sample ended.CountMetricSummaryerrors()Gets metrics for number of samples that failed.InstantfirstTime()Gets the instant when the first sample started.CountMetricSummaryreceivedBytes()Gets metrics for received bytes in sample responses.CountMetricSummarysamples()Gets metrics for number of samplesTimeMetricSummarysampleTime()Gets metrics for time spent in samples.CountMetricSummarysentBytes()Gets metrics for sent bytes in samples requests.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface us.abstracta.jmeter.javadsl.core.stats.StatsSummary
errorsCount, samplesCount, sampleTimePercentile99
-
-
-
-
Method Detail
-
add
public void add(org.apache.jmeter.samplers.SampleResult result)
Description copied from interface:StatsSummaryAdds given sample result data to collected statistics.- Specified by:
addin interfaceStatsSummary- Parameters:
result- contains new data to include in collected statistics.
-
firstTime
public Instant firstTime()
Description copied from interface:StatsSummaryGets the instant when the first sample started.When associated to a test plan or transaction it gets its start time.
- Specified by:
firstTimein interfaceStatsSummary
-
endTime
public Instant endTime()
Description copied from interface:StatsSummaryGets the instant when the last sample ended.When associated to a test plan or transaction it gets its end time.
Take into consideration that for transactions this time takes not only into consideration the endTime of last sample, but also the time spent in timers and pre and postprocessors.
- Specified by:
endTimein interfaceStatsSummary
-
samples
public CountMetricSummary samples()
Description copied from interface:StatsSummaryGets metrics for number of samplesThis counts both failing and passing samples.
- Specified by:
samplesin interfaceStatsSummary
-
errors
public CountMetricSummary errors()
Description copied from interface:StatsSummaryGets metrics for number of samples that failed.- Specified by:
errorsin interfaceStatsSummary
-
sampleTime
public TimeMetricSummary sampleTime()
Description copied from interface:StatsSummaryGets metrics for time spent in samples.- Specified by:
sampleTimein interfaceStatsSummary
-
receivedBytes
public CountMetricSummary receivedBytes()
Description copied from interface:StatsSummaryGets metrics for received bytes in sample responses.- Specified by:
receivedBytesin interfaceStatsSummary
-
sentBytes
public CountMetricSummary sentBytes()
Description copied from interface:StatsSummaryGets metrics for sent bytes in samples requests.- Specified by:
sentBytesin interfaceStatsSummary
-
-