Package org.apache.jmeter.modifiers
Class SampleTimeout
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.modifiers.SampleTimeout
- All Implemented Interfaces:
Serializable,Cloneable,Searchable,SampleMonitor,org.apache.jmeter.testelement.TestElement,ThreadListener
public class SampleTimeout
extends AbstractTestElement
implements Serializable, ThreadListener, SampleMonitor
Sample timeout implementation using Executor threads
- Since:
- 3.0
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the timeout value for display.voidsampleEnded(Sampler sampler) Will be called when a sample has just finishedvoidsampleStarting(Sampler sampler) Will be called when a sample is about to startvoidsetTimeout(String timeout) Set the timeout for this timer.voidCalled for each thread after all samples have been processed.voidCalled for each thread before starting sampling.toString()Provide a description of this class.Methods inherited from class org.apache.jmeter.testelement.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, 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, traversePropertyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
SampleTimeout
public SampleTimeout()No-arg constructor.
-
-
Method Details
-
setTimeout
Set the timeout for this timer.- Parameters:
timeout- The timeout for this timer
-
getTimeout
Get the timeout value for display.- Returns:
- the timeout value for display.
-
sampleStarting
Description copied from interface:SampleMonitorWill be called when a sample is about to start- Specified by:
sampleStartingin interfaceSampleMonitor- Parameters:
sampler- sample that will be started
-
sampleEnded
Description copied from interface:SampleMonitorWill be called when a sample has just finished- Specified by:
sampleEndedin interfaceSampleMonitor- Parameters:
sampler- finished sample
-
threadStarted
public void threadStarted()Description copied from interface:ThreadListenerCalled for each thread before starting sampling. WARNING: this is called before any Config test elements are processed, so any properties they define will not have been merged in yet. See org.apache.jmeter.threads.JMeterThread#threadStarted()- Specified by:
threadStartedin interfaceThreadListener
-
threadFinished
public void threadFinished()Description copied from interface:ThreadListenerCalled for each thread after all samples have been processed. See org.apache.jmeter.threads.JMeterThread#threadFinished(org.apache.jmeter.engine.event.LoopIterationListener)- Specified by:
threadFinishedin interfaceThreadListener
-
toString
Provide a description of this class.
-