@AutoService(value=BackendListenerClient.class) public class InfluxDBRawBackendListenerClient extends Object implements BackendListenerClient
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.| Constructor and Description |
|---|
InfluxDBRawBackendListenerClient() |
InfluxDBRawBackendListenerClient(org.apache.jmeter.visualizers.backend.influxdb.InfluxdbMetricsSender sender)
Used for testing.
|
| Modifier and Type | Method and Description |
|---|---|
Arguments |
getDefaultParameters()
Provide 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 |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSampleResultpublic InfluxDBRawBackendListenerClient()
public InfluxDBRawBackendListenerClient(org.apache.jmeter.visualizers.backend.influxdb.InfluxdbMetricsSender sender)
sender - the InfluxdbMetricsSender to usepublic void setupTest(BackendListenerContext context) throws Exception
BackendListenerClientBackendListenerClient.handleSampleResults(List, BackendListenerContext)
in order to add as little overhead as possible to the test.setupTest in interface BackendListenerClientcontext - provides access to initialization parameters.Exception - when setup failspublic void teardownTest(BackendListenerContext context)
BackendListenerClientteardownTest in interface BackendListenerClientcontext - provides access to initialization parameters.public void handleSampleResults(List<SampleResult> sampleResults, BackendListenerContext context)
BackendListenerClienthandleSampleResults in interface BackendListenerClientsampleResults - List of SampleResultcontext - provides access to initialization parameters.public Arguments getDefaultParameters()
BackendListenerClientgetDefaultParameters in interface BackendListenerClientCopyright © 1998-2023 Apache Software Foundation. All Rights Reserved.