public class BackendListener extends AbstractTestElement implements Backend, java.io.Serializable, SampleListener, TestStateListener, NoThreadClone, Remoteable
BackendListenerClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARGUMENTS
Property key representing the arguments for the BackendListenerClient.
|
static java.lang.String |
CLASSNAME
Property key representing the classname of the BackendListenerClient to user.
|
static java.lang.String |
DEFAULT_QUEUE_SIZE |
static java.lang.String |
QUEUE_SIZE
Queue size
|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
BackendListener()
Create a BackendListener.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
Arguments |
getArguments()
Get the arguments (parameters) for the BackendListenerClient to be executed
with.
|
java.lang.String |
getClassname()
Gets the Classname of the BackendListenerClient object
|
java.lang.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(java.lang.String classname)
Sets the Classname of the BackendListenerClient object
|
void |
setQueueSize(java.lang.String queueSize)
Sets the queue size
|
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(java.lang.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(java.lang.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, 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, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removed
public static final java.lang.String CLASSNAME
public static final java.lang.String QUEUE_SIZE
public static final java.lang.String ARGUMENTS
public static final java.lang.String DEFAULT_QUEUE_SIZE
public java.lang.Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
public void sampleOccurred(SampleEvent event)
SampleListener
sampleOccurred
in interface SampleListener
event
- the SampleEvent
that has occurredpublic void testStarted()
TestStateListener
Called 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 TestStateListener
StandardJMeterEngine.run()
public void testStarted(java.lang.String host)
TestStateListener
Called 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 TestStateListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded(java.lang.String host)
testEnded
in interface TestStateListener
host
- name of hostStandardJMeterEngine.stopTest()
public void testEnded()
TestStateListener
Called 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 TestStateListener
StandardJMeterEngine.stopTest()
public void sampleStarted(SampleEvent e)
SampleListener
sampleStarted
in interface SampleListener
e
- the SampleEvent
that has startedpublic void sampleStopped(SampleEvent e)
SampleListener
sampleStopped
in interface SampleListener
e
- the SampleEvent
that has stoppedpublic void setArguments(Arguments args)
args
- the new arguments. These replace any existing arguments.public Arguments getArguments()
public void setClassname(java.lang.String classname)
classname
- the new Classname valuepublic java.lang.String getClassname()
public void setQueueSize(java.lang.String queueSize)
queueSize
- the size of the queuepublic java.lang.String getQueueSize()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.