Class BackendListener
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,org.apache.jmeter.engine.util.NoThreadClone,org.apache.jmeter.gui.Searchable,org.apache.jmeter.samplers.Remoteable,org.apache.jmeter.samplers.SampleListener,org.apache.jmeter.testelement.TestElement,org.apache.jmeter.testelement.TestStateListener,org.apache.jmeter.visualizers.backend.Backend
public class BackendListener extends AbstractTestElement implements Backend, Serializable, SampleListener, TestStateListener, NoThreadClone, Remoteable
Async Listener that delegates SampleResult handling to implementations of BackendListenerClient
- Since:
2.13
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringCLASSNAMEpublic final static StringQUEUE_SIZEpublic final static StringARGUMENTSpublic final static StringDEFAULT_QUEUE_SIZEpublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description BackendListener()Create a BackendListener.
-
Method Summary
Modifier and Type Method Description Objectclone()voidsampleOccurred(SampleEvent event)voidtestStarted()voidtestStarted(String host)voidtestEnded(String host)Method called at the end of the test. voidtestEnded()voidsampleStarted(SampleEvent e)voidsampleStopped(SampleEvent e)voidsetArguments(Arguments args)Set the arguments (parameters) for the BackendListenerClient to be executed with. ArgumentsgetArguments()Get the arguments (parameters) for the BackendListenerClient to be executed with. voidsetClassname(String classname)Sets the Classname of the BackendListenerClient object StringgetClassname()Gets the Classname of the BackendListenerClient object voidsetQueueSize(String queueSize)Sets the queue size StringgetQueueSize()Gets the queue size -
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse -
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
sampleOccurred
void sampleOccurred(SampleEvent event)
-
testStarted
void testStarted()
-
testStarted
void testStarted(String host)
-
testEnded
void testEnded(String host)
Method called at the end of the test. This is called only on one instance of BackendListener. This method will loop through all of the other BackendListenerClients which have been registered (automatically in the constructor) and notify them that the test has ended, allowing the BackendListenerClients to cleanup. Implements TestStateListener.testEnded(String)
-
testEnded
void testEnded()
-
sampleStarted
void sampleStarted(SampleEvent e)
-
sampleStopped
void sampleStopped(SampleEvent e)
-
setArguments
void setArguments(Arguments args)
Set the arguments (parameters) for the BackendListenerClient to be executed with.
- Parameters:
args- the new arguments.
-
getArguments
Arguments getArguments()
Get the arguments (parameters) for the BackendListenerClient to be executed with.
- Returns:
the arguments
-
setClassname
void setClassname(String classname)
Sets the Classname of the BackendListenerClient object
- Parameters:
classname- the new Classname value
-
getClassname
String getClassname()
Gets the Classname of the BackendListenerClient object
- Returns:
the Classname value
-
setQueueSize
void setQueueSize(String queueSize)
Sets the queue size
- Parameters:
queueSize- the size of the queue
-
getQueueSize
String getQueueSize()
Gets the queue size
- Returns:
int queueSize
-
-
-
-