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, wait
createSampleResult
public InfluxDBRawBackendListenerClient()
public InfluxDBRawBackendListenerClient(org.apache.jmeter.visualizers.backend.influxdb.InfluxdbMetricsSender sender)
sender
- the InfluxdbMetricsSender
to usepublic void setupTest(BackendListenerContext context) throws Exception
BackendListenerClient
BackendListenerClient.handleSampleResults(List, BackendListenerContext)
in order to add as little overhead as possible to the test.setupTest
in interface BackendListenerClient
context
- provides access to initialization parameters.Exception
- when setup failspublic void teardownTest(BackendListenerContext context)
BackendListenerClient
teardownTest
in interface BackendListenerClient
context
- provides access to initialization parameters.public void handleSampleResults(List<SampleResult> sampleResults, BackendListenerContext context)
BackendListenerClient
handleSampleResults
in interface BackendListenerClient
sampleResults
- List of SampleResult
context
- provides access to initialization parameters.public Arguments getDefaultParameters()
BackendListenerClient
getDefaultParameters
in interface BackendListenerClient
Copyright © 1998-2021 Apache Software Foundation. All Rights Reserved.