org.apache.jmeter.timers

Class ConstantTimer

Implemented Interfaces:
Cloneable, Serializable, LoopIterationListener, Serializable, TestElement, Timer
Known Direct 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.

Field Summary

static String
DELAY

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

ConstantTimer()
No-arg constructor.

Method Summary

long
delay()
Retrieve the delay to use during test execution.
String
getDelay()
Get the delay value for display.
double
getRange()
Retrieve the range (not used for this timer).
void
iterationStart(LoopIterationEvent event)
Gain access to any variables that have been defined.
void
setDelay(String delay)
Set the delay for this timer.
void
setRange(double range)
Set the range (not used for this timer).
String
toString()
Provide a description of this timer class.

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Field Details

DELAY

public static final String DELAY

Constructor Details

ConstantTimer

public ConstantTimer()
No-arg constructor.

Method Details

delay

public long delay()
Retrieve the delay to use during test execution.
Specified by:
delay in interface Timer
Returns:
the delay.

getDelay

public String getDelay()
Get the delay value for display.
Returns:
the delay value for display.

getRange

public double getRange()
Retrieve the range (not used for this timer).
Returns:
the range (always zero for this timer).

iterationStart

public void iterationStart(LoopIterationEvent event)
Gain access to any variables that have been defined.
Specified by:
iterationStart in interface LoopIterationListener

setDelay

public void setDelay(String delay)
Set the delay for this timer.

setRange

public void setRange(double range)
Set the range (not used for this timer).

toString

public String toString()
Provide a description of this timer class.
Returns:
the description of this timer class.

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.