Class InfluxDBRawBackendListenerClient
java.lang.Object
org.apache.jmeter.visualizers.backend.influxdb.InfluxDBRawBackendListenerClient
- All Implemented Interfaces:
BackendListenerClient
@AutoService(BackendListenerClient.class)
public class InfluxDBRawBackendListenerClient
extends Object
implements BackendListenerClient
Implementation of
BackendListenerClient to write the response times
of every sample to InfluxDB. If more "raw" information is required in InfluxDB
then this class can be extended or another BackendListener
InfluxdbBackendListenerClient can be used to send aggregate information
to InfluxDB.- Since:
- 5.3
-
Constructor Summary
ConstructorsConstructorDescriptionInfluxDBRawBackendListenerClient(org.apache.jmeter.visualizers.backend.influxdb.InfluxdbMetricsSender sender) Used for testing. -
Method Summary
Modifier and TypeMethodDescriptionProvide a list of parameters which this test supports.voidhandleSampleResults(List<SampleResult> sampleResults, BackendListenerContext context) Handle sampleResults, this can be done in many ways: Write to a file Write to a remote server ...voidsetupTest(BackendListenerContext context) Do any initialization required by this client.voidteardownTest(BackendListenerContext context) Do any clean-up required at the end of a test run.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.visualizers.backend.BackendListenerClient
createSampleResult
-
Constructor Details
-
InfluxDBRawBackendListenerClient
public InfluxDBRawBackendListenerClient() -
InfluxDBRawBackendListenerClient
public InfluxDBRawBackendListenerClient(org.apache.jmeter.visualizers.backend.influxdb.InfluxdbMetricsSender sender) Used for testing.- Parameters:
sender- theInfluxdbMetricsSenderto use
-
-
Method Details
-
setupTest
Description copied from interface:BackendListenerClientDo any initialization required by this client. It is generally recommended to do any initialization such as getting parameter values here rather thanBackendListenerClient.handleSampleResults(List, BackendListenerContext)in order to add as little overhead as possible to the test.- Specified by:
setupTestin interfaceBackendListenerClient- Parameters:
context- provides access to initialization parameters.- Throws:
Exception- when setup fails
-
teardownTest
Description copied from interface:BackendListenerClientDo any clean-up required at the end of a test run.- Specified by:
teardownTestin interfaceBackendListenerClient- Parameters:
context- provides access to initialization parameters.
-
handleSampleResults
Description copied from interface:BackendListenerClientHandle sampleResults, this can be done in many ways:- Write to a file
- Write to a remote server
- ...
- Specified by:
handleSampleResultsin interfaceBackendListenerClient- Parameters:
sampleResults- List ofSampleResultcontext- provides access to initialization parameters.
-
getDefaultParameters
Description copied from interface:BackendListenerClientProvide a list of parameters which this test supports. Any parameter names and associated values returned by this method will appear in the GUI by default so the user doesn't have to remember the exact names. The user can add other parameters which are not listed here. If this method returns null then no parameters will be listed. If the value for some parameter is null then that parameter will be listed in the GUI with an empty value.- Specified by:
getDefaultParametersin interfaceBackendListenerClient- Returns:
- a specification of the parameters used by this test which should be listed in the GUI, or null if no parameters should be listed.
-