public class GraphiteBackendListenerClient extends AbstractBackendListenerClient implements Runnable
Modifier and Type | Field and Description |
---|---|
static String |
USE_REGEXP_FOR_SAMPLERS_LIST |
static 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.
|
String |
getSamplersList() |
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 |
run() |
protected void |
sendMetrics()
Send metrics to Graphite
|
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.
|
getMetricsPerSampler, getNewLogger, getSamplerMetric, getUserMetrics
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSampleResult
public static final String USE_REGEXP_FOR_SAMPLERS_LIST
public static final String USE_REGEXP_FOR_SAMPLERS_LIST_DEFAULT
protected void sendMetrics()
public String getSamplersList()
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
- provides access to initialization parameters.public 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
setupTest
in class AbstractBackendListenerClient
context
- provides access to initialization parameters.Exception
- when setup failspublic void teardownTest(BackendListenerContext context) throws Exception
BackendListenerClient
teardownTest
in interface BackendListenerClient
teardownTest
in class AbstractBackendListenerClient
context
- provides access to initialization parameters.Exception
- when tear down failspublic Arguments getDefaultParameters()
BackendListenerClient
getDefaultParameters
in interface BackendListenerClient
getDefaultParameters
in class AbstractBackendListenerClient
Copyright © 1998-2022 Apache Software Foundation. All Rights Reserved.