public class InfluxdbBackendListenerClient extends AbstractBackendListenerClient implements java.lang.Runnable
AbstractBackendListenerClient to write in an InfluxDB using
custom schema| Constructor and Description |
|---|
InfluxdbBackendListenerClient() |
| Modifier and Type | Method and Description |
|---|---|
Arguments |
getDefaultParameters()
Provide a list of parameters which this test supports.
|
protected SamplerMetric |
getSamplerMetricInfluxdb(java.lang.String sampleLabel) |
java.lang.String |
getSamplersRegex() |
void |
handleSampleResults(java.util.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(java.lang.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, getUserMetricspublic void run()
run in interface java.lang.Runnableprotected void sendMetrics()
public java.lang.String getSamplersRegex()
public void setSamplersList(java.lang.String samplersList)
samplersList - the samplersList to setpublic void handleSampleResults(java.util.List<SampleResult> sampleResults, BackendListenerContext context)
BackendListenerClienthandleSampleResults in interface BackendListenerClientsampleResults - List of SampleResultcontext - the context to run with. This provides access to
initialization parameters.public void setupTest(BackendListenerContext context) throws java.lang.Exception
BackendListenerClientsetupTest in interface BackendListenerClientsetupTest in class AbstractBackendListenerClientcontext - the context to run with. This provides access to
initialization parameters.
Context is readonlyjava.lang.Exception - when setup failsprotected SamplerMetric getSamplerMetricInfluxdb(java.lang.String sampleLabel)
public void teardownTest(BackendListenerContext context) throws java.lang.Exception
BackendListenerClientteardownTest in interface BackendListenerClientteardownTest in class AbstractBackendListenerClientcontext - the context to run with. This provides access to
initialization parameters.java.lang.Exception - when tear down failspublic Arguments getDefaultParameters()
BackendListenerClientgetDefaultParameters in interface BackendListenerClientgetDefaultParameters in class AbstractBackendListenerClientCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.