public abstract class AbstractBackendListenerClient extends Object implements BackendListenerClient
The BackendListenerClient.handleSampleResults(java.util.List, BackendListenerContext)
method of BackendListenerClient does not have a default
implementation here, so subclasses must define at least this method. It may
be useful to override other methods as well.
BackendListener.sampleOccurred(org.apache.jmeter.samplers.SampleEvent)
Constructor and Description |
---|
AbstractBackendListenerClient() |
Modifier and Type | Method and Description |
---|---|
Arguments |
getDefaultParameters()
Provide a list of parameters which this test supports.
|
protected Map<String,SamplerMetric> |
getMetricsPerSampler() |
protected org.slf4j.Logger |
getNewLogger()
Get a Logger instance which can be used by subclasses to log information.
|
protected SamplerMetric |
getSamplerMetric(String sampleLabel) |
protected UserMetric |
getUserMetrics() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSampleResult, handleSampleResults
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
context
- provides access to initialization parameters.Exception
- when setup failspublic void teardownTest(BackendListenerContext context) throws Exception
BackendListenerClient
teardownTest
in interface BackendListenerClient
context
- provides access to initialization parameters.Exception
- when tear down failspublic Arguments getDefaultParameters()
BackendListenerClient
getDefaultParameters
in interface BackendListenerClient
protected org.slf4j.Logger getNewLogger()
Logger
instance which can be used for loggingprotected final SamplerMetric getSamplerMetric(String sampleLabel)
sampleLabel
- Name of sample used as keySamplerMetric
protected Map<String,SamplerMetric> getMetricsPerSampler()
SamplerMetric
is the metrics of this Sampleprotected UserMetric getUserMetrics()
UserMetric
Copyright © 1998-2022 Apache Software Foundation. All Rights Reserved.