Package org.apache.jmeter.timers
Class ConstantTimer
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,org.apache.jmeter.engine.event.LoopIterationListener
,org.apache.jmeter.gui.Searchable
,org.apache.jmeter.testelement.TestElement
,org.apache.jmeter.timers.Timer
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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
DELAY
public transient JMeterContext
threadContext
public transient String
threadName
public final static TestElement.Companion
Companion
public final static String
NAME
public final static String
GUI_CLASS
public final static String
ENABLED
public final static String
TEST_CLASS
public final static String
COMMENTS
-
Constructor Summary
Constructors Constructor Description ConstantTimer()
No-arg constructor.
-
Method Summary
Modifier and Type Method Description void
setDelay(String delay)
Set the delay for this timer. void
setRange(double range)
Set the range (not used for this timer). String
getDelay()
Get the delay value for display. double
getRange()
Retrieve the range (not used for this timer). long
delay()
Retrieve the delay to use during test execution. String
toString()
Provide a description of this timer class. void
iterationStart(LoopIterationEvent event)
Gain access to any variables that have been defined. -
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).
-
delay
long delay()
Retrieve the delay to use during test execution.
-
iterationStart
void iterationStart(LoopIterationEvent event)
Gain access to any variables that have been defined.
-
-
-
-