public class GraphiteBackendListenerClient extends AbstractBackendListenerClient implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USE_REGEXP_FOR_SAMPLERS_LIST |
static java.lang.String |
USE_REGEXP_FOR_SAMPLERS_LIST_DEFAULT |
Constructor and Description |
---|
GraphiteBackendListenerClient() |
Modifier and Type | Method and Description |
---|---|
Arguments |
getDefaultParameters()
Provide a list of parameters which this test supports.
|
java.lang.String |
getSamplersList() |
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 to Graphite
|
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, getUserMetrics
public static final java.lang.String USE_REGEXP_FOR_SAMPLERS_LIST
public static final java.lang.String USE_REGEXP_FOR_SAMPLERS_LIST_DEFAULT
public void run()
run
in interface java.lang.Runnable
protected void sendMetrics()
public java.lang.String getSamplersList()
public void setSamplersList(java.lang.String samplersList)
samplersList
- the samplersList to setpublic void handleSampleResults(java.util.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 java.lang.Exception
BackendListenerClient
setupTest
in interface BackendListenerClient
setupTest
in class AbstractBackendListenerClient
context
- the context to run with. This provides access to
initialization parameters.
Context is readonlyjava.lang.Exception
- when setup failspublic void teardownTest(BackendListenerContext context) throws java.lang.Exception
BackendListenerClient
teardownTest
in interface BackendListenerClient
teardownTest
in class AbstractBackendListenerClient
context
- the context to run with. This provides access to
initialization parameters.java.lang.Exception
- when tear down failspublic Arguments getDefaultParameters()
BackendListenerClient
getDefaultParameters
in interface BackendListenerClient
getDefaultParameters
in class AbstractBackendListenerClient
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.