Class InfluxdbBackendListenerClient
java.lang.Object
org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient
org.apache.jmeter.visualizers.backend.influxdb.InfluxdbBackendListenerClient
- All Implemented Interfaces:
Runnable
,BackendListenerClient
@AutoService(BackendListenerClient.class)
public class InfluxdbBackendListenerClient
extends AbstractBackendListenerClient
implements Runnable
Implementation of
AbstractBackendListenerClient
to write to InfluxDB
using a custom schema; since JMeter 5.2, this also support the InfluxDB v2.- Since:
- 3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvide a list of parameters which this test supports.void
handleSampleResults
(List<SampleResult> sampleResults, BackendListenerContext context) Handle sampleResults, this can be done in many ways: Write to a file Write to a remote server ...void
run()
void
setSamplersList
(String samplersList) void
setupTest
(BackendListenerContext context) Do any initialization required by this client.void
teardownTest
(BackendListenerContext context) Do any clean-up required at the end of a test run.Methods inherited from class org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient
getMetricsPerSampler, getNewLogger, getSamplerMetric, getUserMetrics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jmeter.visualizers.backend.BackendListenerClient
createSampleResult
-
Constructor Details
-
InfluxdbBackendListenerClient
public InfluxdbBackendListenerClient()
-
-
Method Details
-
run
public void run() -
getSamplersRegex
-
setSamplersList
- Parameters:
samplersList
- the samplersList to set
-
handleSampleResults
Description copied from interface:BackendListenerClient
Handle sampleResults, this can be done in many ways:- Write to a file
- Write to a remote server
- ...
- Specified by:
handleSampleResults
in interfaceBackendListenerClient
- Parameters:
sampleResults
- List ofSampleResult
context
- provides access to initialization parameters.
-
setupTest
Description copied from interface:BackendListenerClient
Do 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:
setupTest
in interfaceBackendListenerClient
- Overrides:
setupTest
in classAbstractBackendListenerClient
- Parameters:
context
- provides access to initialization parameters.- Throws:
Exception
- when setup fails
-
teardownTest
Description copied from interface:BackendListenerClient
Do any clean-up required at the end of a test run.- Specified by:
teardownTest
in interfaceBackendListenerClient
- Overrides:
teardownTest
in classAbstractBackendListenerClient
- Parameters:
context
- provides access to initialization parameters.- Throws:
Exception
- when tear down fails
-
getDefaultParameters
Description copied from interface:BackendListenerClient
Provide 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:
getDefaultParameters
in interfaceBackendListenerClient
- Overrides:
getDefaultParameters
in classAbstractBackendListenerClient
- 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.
-