Package org.apache.jmeter.timers
Class ConstantTimer
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,org.apache.jmeter.gui.Searchable,org.apache.jmeter.testelement.TestElement,org.apache.jmeter.timers.Timer
public class ConstantTimer extends AbstractTestElement implements Timer, Serializable
This class implements a constant timer with its own panel and fields for value update and user interaction.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDELAYpublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description ConstantTimer()No-arg constructor.
-
Method Summary
Modifier and Type Method Description voidsetDelay(String delay)Set the delay for this timer. voidsetRange(double range)Set the range (not used for this timer). StringgetDelay()Get the delay value for display. doublegetRange()Retrieve the range (not used for this timer). longdelay()Retrieve the delay to use during test execution. StringtoString()Provide a description of this timer class. -
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse -
Methods inherited from class org.apache.jmeter.timers.Timer
isModifiable -
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setDelay
void setDelay(String delay)
Set the delay for this timer.
- Parameters:
delay- The delay for this timer
-
setRange
void setRange(double range)
Set the range (not used for this timer).
- Parameters:
range- Not used
-
getRange
double getRange()
Retrieve the range (not used for this timer).
- Returns:
the range (always zero for this timer).
-
delay
long delay()
Retrieve the delay to use during test execution.
- Returns:
the delay.
-
-
-
-