Class GraphiteBackendListenerClient
- java.lang.Object
-
- org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient
-
- org.apache.jmeter.visualizers.backend.graphite.GraphiteBackendListenerClient
-
- All Implemented Interfaces:
Runnable,BackendListenerClient
public class GraphiteBackendListenerClient extends AbstractBackendListenerClient implements Runnable
Graphite based Listener using Pickle Protocol- Since:
- 2.13
- See Also:
- Graphite Overview
-
-
Constructor Summary
Constructors Constructor Description GraphiteBackendListenerClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentsgetDefaultParameters()Provide a list of parameters which this test supports.StringgetSamplersList()voidhandleSampleResults(List<SampleResult> sampleResults, BackendListenerContext context)Handle sampleResults, this can be done in many ways: Write to a file Write to a distant server ...voidrun()protected voidsendMetrics()Send metrics to GraphitevoidsetSamplersList(String samplersList)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.-
Methods inherited from class org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient
createSampleResult, getLogger, getMetricsPerSampler, getSamplerMetric, getUserMetrics
-
-
-
-
Method Detail
-
sendMetrics
protected void sendMetrics()
Send metrics to Graphite
-
getSamplersList
public String getSamplersList()
- Returns:
- the samplersList
-
setSamplersList
public void setSamplersList(String samplersList)
- Parameters:
samplersList- the samplersList to set
-
handleSampleResults
public void handleSampleResults(List<SampleResult> sampleResults, BackendListenerContext context)
Description copied from interface:BackendListenerClientHandle sampleResults, this can be done in many ways:- Write to a file
- Write to a distant server
- ...
- Specified by:
handleSampleResultsin interfaceBackendListenerClient- Parameters:
sampleResults- List ofSampleResultcontext- the context to run with. This provides access to initialization parameters.
-
setupTest
public void setupTest(BackendListenerContext context) throws Exception
Description copied from interface:BackendListenerClientDo any initialization required by this client. It is generally recommended to do any initialization such as getting parameter values in the setupTest method rather than the runTest method in order to add as little overhead as possible to the test.- Specified by:
setupTestin interfaceBackendListenerClient- Overrides:
setupTestin classAbstractBackendListenerClient- Parameters:
context- the context to run with. This provides access to initialization parameters. Context is readonly- Throws:
Exception- when setup fails
-
teardownTest
public void teardownTest(BackendListenerContext context) throws Exception
Description copied from interface:BackendListenerClientDo any clean-up required at the end of a test run.- Specified by:
teardownTestin interfaceBackendListenerClient- Overrides:
teardownTestin classAbstractBackendListenerClient- Parameters:
context- the context to run with. This provides access to initialization parameters.- Throws:
Exception- when tear down fails
-
getDefaultParameters
public Arguments getDefaultParameters()
Description copied from interface:BackendListenerClientProvide 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.- Specified by:
getDefaultParametersin interfaceBackendListenerClient- Overrides:
getDefaultParametersin classAbstractBackendListenerClient- 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.
-
-