Class BSFListener
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.util.ScriptingTestElement
org.apache.jmeter.util.BSFTestElement
org.apache.jmeter.visualizers.BSFListener
- All Implemented Interfaces:
Serializable, Cloneable, Searchable, SampleListener, TestBean, TestElement, Visualizer
public class BSFListener
extends BSFTestElement
implements Cloneable, SampleListener, TestBean, Visualizer
- See Also:
-
Field Summary
Fields inherited from class ScriptingTestElement
scriptLanguageFields inherited from interface TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SampleResult sample) This method is called by sampling thread to inform the visualizer about the arrival of a new sample.booleanisStats()This method is used to indicate a visualizer generates statistics.voidsampleOccurred(SampleEvent event) A sample has started and stopped.voidA sample has started.voidA sample has stopped.Methods inherited from class BSFTestElement
evalFileOrScript, getManager, getScriptLanguage, initManager, processFileOrScript, setScriptLanguageMethods inherited from class ScriptingTestElement
getFilename, getParameters, getScript, setFilename, setParameters, setScriptMethods inherited from class AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, 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
-
Constructor Details
-
BSFListener
public BSFListener()
-
-
Method Details
-
sampleOccurred
Description copied from interface:SampleListenerA sample has started and stopped.- Specified by:
sampleOccurredin interfaceSampleListener- Parameters:
event- theSampleEventthat has occurred
-
sampleStarted
Description copied from interface:SampleListenerA sample has started.- Specified by:
sampleStartedin interfaceSampleListener- Parameters:
e- theSampleEventthat has started
-
sampleStopped
Description copied from interface:SampleListenerA sample has stopped.- Specified by:
sampleStoppedin interfaceSampleListener- Parameters:
e- theSampleEventthat has stopped
-
add
Description copied from interface:VisualizerThis method is called by sampling thread to inform the visualizer about the arrival of a new sample.- Specified by:
addin interfaceVisualizer- Parameters:
sample- the newly arrived sample
-
isStats
public boolean isStats()Description copied from interface:VisualizerThis method is used to indicate a visualizer generates statistics.- Specified by:
isStatsin interfaceVisualizer- Returns:
- true if visualiser generates statistics
-