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,TestElement,TestStateListener,ThreadListener,Visualizer
public class BeanShellListener extends BeanShellTestElement implements Cloneable, SampleListener, TestBean, Visualizer, UnsharedComponent
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
-
Constructor Summary
Constructors Constructor Description BeanShellListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(SampleResult sample)This method is called by sampling thread to inform the visualizer about the arrival of a new sample.protected StringgetInitFileProperty()booleanisStats()This method is used to indicate a visualizer generates statistics.voidsampleOccurred(SampleEvent se)A sample has started and stopped.voidsampleStarted(SampleEvent e)A sample has started.voidsampleStopped(SampleEvent e)A sample has stopped.-
Methods inherited from class org.apache.jmeter.util.BeanShellTestElement
clone, getBeanShellInterpreter, getFilename, getParameters, getScript, isResetInterpreter, 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, 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
-
-
-
-
Method Detail
-
getInitFileProperty
protected String getInitFileProperty()
- Specified by:
getInitFilePropertyin classBeanShellTestElement
-
sampleOccurred
public void sampleOccurred(SampleEvent se)
Description copied from interface:SampleListenerA sample has started and stopped.- Specified by:
sampleOccurredin interfaceSampleListener- Parameters:
se- theSampleEventthat has occurred
-
sampleStarted
public void sampleStarted(SampleEvent e)
Description copied from interface:SampleListenerA sample has started.- Specified by:
sampleStartedin interfaceSampleListener- Parameters:
e- theSampleEventthat has started
-
sampleStopped
public void sampleStopped(SampleEvent e)
Description copied from interface:SampleListenerA sample has stopped.- Specified by:
sampleStoppedin interfaceSampleListener- Parameters:
e- theSampleEventthat has stopped
-
add
public void add(SampleResult sample)
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
-
-