public class BackendListener extends AbstractTestElement implements Backend, Serializable, SampleListener, TestStateListener, NoThreadClone, Remoteable
BackendListenerClient| Modifier and Type | Field and Description |
|---|---|
static String |
ARGUMENTS
Property key representing the arguments for the BackendListenerClient.
|
static String |
CLASSNAME
Property key representing the classname of the BackendListenerClient to user.
|
static String |
DEFAULT_QUEUE_SIZE |
static String |
QUEUE_SIZE
Queue size
|
| Constructor and Description |
|---|
BackendListener()
Create a BackendListener.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Arguments |
getArguments()
Get the arguments (parameters) for the BackendListenerClient to be executed
with.
|
String |
getClassname()
Gets the Classname of the BackendListenerClient object
|
String |
getQueueSize()
Gets the queue size
|
void |
sampleOccurred(SampleEvent event)
A sample has started and stopped.
|
void |
sampleStarted(SampleEvent e)
A sample has started.
|
void |
sampleStopped(SampleEvent e)
A sample has stopped.
|
void |
setArguments(Arguments args)
Set the arguments (parameters) for the BackendListenerClient to be executed
with.
|
void |
setClassname(String classname)
Sets the Classname of the BackendListenerClient object
|
void |
setQueueSize(String queueSize)
Sets the queue size
|
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(String host)
Method called at the end of the test.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(String host)
Called just before the start of the test from the main engine thread.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertypublic static final String CLASSNAME
public static final String QUEUE_SIZE
public static final String ARGUMENTS
public static final String DEFAULT_QUEUE_SIZE
public Object clone()
clone in interface org.apache.jmeter.testelement.TestElementclone in class AbstractTestElementpublic void sampleOccurred(SampleEvent event)
SampleListenersampleOccurred in interface SampleListenerevent - the SampleEvent that has occurredpublic void testStarted()
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerStandardJMeterEngine.run()public void testStarted(String host)
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerhost - name of hostStandardJMeterEngine.run()public void testEnded(String host)
testEnded in interface TestStateListenerhost - name of hostStandardJMeterEngine.stopTest()public void testEnded()
TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestStateListenerStandardJMeterEngine.stopTest()public void sampleStarted(SampleEvent e)
SampleListenersampleStarted in interface SampleListenere - the SampleEvent that has startedpublic void sampleStopped(SampleEvent e)
SampleListenersampleStopped in interface SampleListenere - the SampleEvent that has stoppedpublic void setArguments(Arguments args)
args - the new arguments. These replace any existing arguments.public Arguments getArguments()
public void setClassname(String classname)
classname - the new Classname valuepublic String getClassname()
public void setQueueSize(String queueSize)
queueSize - the size of the queuepublic String getQueueSize()
Copyright © 1998-2023 Apache Software Foundation. All Rights Reserved.