Class GraphiteBackendListenerClient
-
- All Implemented Interfaces:
-
java.lang.Runnable,org.apache.jmeter.visualizers.backend.BackendListenerClient
@AutoService(value = BackendListenerClient.class) public class GraphiteBackendListenerClient extends AbstractBackendListenerClient implements Runnable
Graphite based Listener using Pickle Protocol
- Since:
2.13
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringUSE_REGEXP_FOR_SAMPLERS_LISTpublic final static StringUSE_REGEXP_FOR_SAMPLERS_LIST_DEFAULTpublic StringsamplersList
-
Constructor Summary
Constructors Constructor Description GraphiteBackendListenerClient()
-
Method Summary
Modifier and Type Method Description StringgetSamplersList()voidsetSamplersList(String samplersList)voidrun()voidhandleSampleResults(List<SampleResult> sampleResults, BackendListenerContext context)Handle sampleResults, this can be done in many ways: - Write to a file
- Write to a remote server
- ...
voidsetupTest(BackendListenerContext context)Do any initialization required by this client. voidteardownTest(BackendListenerContext context)Do any clean-up required at the end of a test run. ArgumentsgetDefaultParameters()Provide a list of parameters which this test supports. -
-
Method Detail
-
getSamplersList
String getSamplersList()
- Returns:
the samplersList
-
setSamplersList
void setSamplersList(String samplersList)
- Parameters:
samplersList- the samplersList to set
-
run
void run()
-
handleSampleResults
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
- ...
- Parameters:
sampleResults- List of SampleResultcontext- provides access to initialization parameters.
-
setupTest
void setupTest(BackendListenerContext context)
Do any initialization required by this client. It is generally recommended to do any initialization such as getting parameter values here rather than handleSampleResults in order to add as little overhead as possible to the test.
- Parameters:
context- provides access to initialization parameters.
-
teardownTest
void teardownTest(BackendListenerContext context)
Do any clean-up required at the end of a test run.
- Parameters:
context- provides access to initialization parameters.
-
getDefaultParameters
Arguments getDefaultParameters()
Provide a list of parameters which this test supports. Any parameter names and associated values returned by this method will appear in the GUI by default so the user doesn't have to remember the exact names. The user can add other parameters which are not listed here. If this method returns null then no parameters will be listed. If the value for some parameter is null then that parameter will be listed in the GUI with an empty value.
- Returns:
a specification of the parameters used by this test which should be listed in the GUI, or null if no parameters should be listed.
-
-
-