public class BSFListener extends BSFTestElement implements java.lang.Cloneable, SampleListener, TestBean, Visualizer
DEFAULT_SCRIPT_LANGUAGE, scriptLanguage
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
BSFListener() |
Modifier and Type | Method and Description |
---|---|
void |
add(SampleResult sample)
This method is called by sampling thread to inform the visualizer about
the arrival of a new sample.
|
java.lang.Object |
clone() |
boolean |
isStats()
This method is used to indicate a visualizer generates statistics.
|
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.
|
evalFileOrScript, getManager, getScriptLanguage, initManager, processFileOrScript, setScriptLanguage
getFilename, getParameters, getScript, isStopCondition, setFilename, setParameters, setScript
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 void sampleOccurred(SampleEvent event)
SampleListener
sampleOccurred
in interface SampleListener
event
- the SampleEvent
that has occurredpublic 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 add(SampleResult sample)
Visualizer
add
in interface Visualizer
sample
- the newly arrived samplepublic boolean isStats()
Visualizer
isStats
in interface Visualizer
public java.lang.Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.