public abstract class AbstractBackendListenerClient extends java.lang.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 |
---|---|
SampleResult |
createSampleResult(BackendListenerContext context,
SampleResult result)
Create a copy of SampleResult, this method is here to allow customizing
what is kept in the copy, for example copy could remove some useless fields.
|
Arguments |
getDefaultParameters()
Provide a list of parameters which this test supports.
|
protected org.apache.log.Logger |
getLogger()
Deprecated.
Will be removed in 3.3, use
getNewLogger() |
protected java.util.Map<java.lang.String,SamplerMetric> |
getMetricsPerSampler() |
protected org.slf4j.Logger |
getNewLogger()
Get a Logger instance which can be used by subclasses to log information.
|
protected SamplerMetric |
getSamplerMetric(java.lang.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
handleSampleResults
public void setupTest(BackendListenerContext context) throws java.lang.Exception
BackendListenerClient
setupTest
in interface BackendListenerClient
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
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
@Deprecated protected org.apache.log.Logger getLogger()
getNewLogger()
protected org.slf4j.Logger getNewLogger()
Logger
instance which can be used for loggingpublic SampleResult createSampleResult(BackendListenerContext context, SampleResult result)
createSampleResult
in interface BackendListenerClient
context
- BackendListenerContext
result
- SampleResult
SampleResult
protected final SamplerMetric getSamplerMetric(java.lang.String sampleLabel)
sampleLabel
- Name of sample used as keySamplerMetric
protected java.util.Map<java.lang.String,SamplerMetric> getMetricsPerSampler()
SamplerMetric
is the metrics of this Sampleprotected UserMetric getUserMetrics()
UserMetric
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.