Class ConstantTimer
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.timers.ConstantTimer
- All Implemented Interfaces:
Serializable, Cloneable, LoopIterationListener, Searchable, TestElement, Timer
- Direct Known Subclasses:
RandomTimer
public class ConstantTimer
extends AbstractTestElement
implements Timer, Serializable, LoopIterationListener
This class implements a constant timer with its own panel and fields for
value update and user interaction.
- See Also:
-
Field Summary
FieldsFields inherited from interface TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdelay()Retrieve the delay to use during test execution.getDelay()Get the delay value for display.doublegetRange()Retrieve the range (not used for this timer).voiditerationStart(LoopIterationEvent event) Gain access to any variables that have been defined.voidSet the delay for this timer.voidsetRange(double range) Set the range (not used for this timer).toString()Provide a description of this timer class.Methods 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
-
Field Details
-
DELAY
- See Also:
-
-
Constructor Details
-
ConstantTimer
public ConstantTimer()No-arg constructor.
-
-
Method Details
-
setDelay
Set the delay for this timer.- Parameters:
delay- The delay for this timer
-
setRange
public void setRange(double range) Set the range (not used for this timer).- Parameters:
range- Not used
-
getDelay
-
getRange
public double getRange()Retrieve the range (not used for this timer).- Returns:
- the range (always zero for this timer).
-
delay
-
toString
-
iterationStart
Gain access to any variables that have been defined.- Specified by:
iterationStartin interfaceLoopIterationListener- Parameters:
event- the event- See Also:
-