public class InfluxdbBackendListenerClient extends AbstractBackendListenerClient implements Runnable
AbstractBackendListenerClient
to write in an InfluxDB using
custom schemaConstructor and Description |
---|
InfluxdbBackendListenerClient() |
Modifier and Type | Method and Description |
---|---|
Arguments |
getDefaultParameters()
Provide a list of parameters which this test supports.
|
protected SamplerMetric |
getSamplerMetricInfluxdb(String sampleLabel) |
String |
getSamplersRegex() |
void |
handleSampleResults(List<SampleResult> sampleResults,
BackendListenerContext context)
Handle sampleResults, this can be done in many ways:
Write to a file
Write to a distant server
...
|
void |
run() |
protected void |
sendMetrics()
Send metrics
|
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.
|
createSampleResult, getLogger, getMetricsPerSampler, getNewLogger, getSamplerMetric, getUserMetrics
protected void sendMetrics()
public String getSamplersRegex()
public void setSamplersList(String samplersList)
samplersList
- the samplersList to setpublic void handleSampleResults(List<SampleResult> sampleResults, BackendListenerContext context)
BackendListenerClient
handleSampleResults
in interface BackendListenerClient
sampleResults
- List of SampleResult
context
- the context to run with. This provides access to
initialization parameters.public void setupTest(BackendListenerContext context) throws Exception
BackendListenerClient
setupTest
in interface BackendListenerClient
setupTest
in class AbstractBackendListenerClient
context
- the context to run with. This provides access to
initialization parameters.
Context is readonlyException
- when setup failsprotected SamplerMetric getSamplerMetricInfluxdb(String sampleLabel)
public void teardownTest(BackendListenerContext context) throws Exception
BackendListenerClient
teardownTest
in interface BackendListenerClient
teardownTest
in class AbstractBackendListenerClient
context
- the context to run with. This provides access to
initialization parameters.Exception
- when tear down failspublic Arguments getDefaultParameters()
BackendListenerClient
getDefaultParameters
in interface BackendListenerClient
getDefaultParameters
in class AbstractBackendListenerClient
Copyright © 1998-2017 Apache Software Foundation. All Rights Reserved.