Package org.apache.jmeter.visualizers
Class BeanShellListener
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.util.BeanShellTestElement
org.apache.jmeter.visualizers.BeanShellListener
- All Implemented Interfaces:
Serializable
,Cloneable
,Searchable
,UnsharedComponent
,SampleListener
,TestBean
,org.apache.jmeter.testelement.TestElement
,TestStateListener
,ThreadListener
,Visualizer
public class BeanShellListener
extends BeanShellTestElement
implements Cloneable, SampleListener, TestBean, Visualizer, UnsharedComponent
We must implement Visualizer so that TestBeanGUI can find the correct GUI class
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SampleResult sample) This method is called by sampling thread to inform the visualizer about the arrival of a new sample.clone()
protected String
boolean
isStats()
This method is used to indicate a visualizer generates statistics.void
A sample has started and stopped.void
A sample has started.void
A sample has stopped.Methods inherited from class org.apache.jmeter.util.BeanShellTestElement
getBeanShellInterpreter, getFilename, getParameters, getScript, isResetInterpreter, processFileOrScript, processFileOrScript, readResolve, setFilename, setParameters, setResetInterpreter, setScript, testEnded, testEnded, testStarted, testStarted, threadFinished, threadStarted
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
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, traverseProperty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getProps, getSchema, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
-
Constructor Details
-
BeanShellListener
public BeanShellListener()
-
-
Method Details
-
getInitFileProperty
- Specified by:
getInitFileProperty
in classBeanShellTestElement
-
sampleOccurred
Description copied from interface:SampleListener
A sample has started and stopped.- Specified by:
sampleOccurred
in interfaceSampleListener
- Parameters:
se
- theSampleEvent
that has occurred
-
sampleStarted
Description copied from interface:SampleListener
A sample has started.- Specified by:
sampleStarted
in interfaceSampleListener
- Parameters:
e
- theSampleEvent
that has started
-
sampleStopped
Description copied from interface:SampleListener
A sample has stopped.- Specified by:
sampleStopped
in interfaceSampleListener
- Parameters:
e
- theSampleEvent
that has stopped
-
add
Description copied from interface:Visualizer
This method is called by sampling thread to inform the visualizer about the arrival of a new sample.- Specified by:
add
in interfaceVisualizer
- Parameters:
sample
- the newly arrived sample
-
isStats
public boolean isStats()Description copied from interface:Visualizer
This method is used to indicate a visualizer generates statistics.- Specified by:
isStats
in interfaceVisualizer
- Returns:
- true if visualiser generates statistics
-
clone
- Specified by:
clone
in interfaceorg.apache.jmeter.testelement.TestElement
- Overrides:
clone
in classBeanShellTestElement
-