Apache JMeter
1.9

org.apache.jmeter.timers
Class ConstantTimer

java.lang.Object
  |
  +--org.apache.jmeter.testelement.AbstractTestElement
        |
        +--org.apache.jmeter.timers.ConstantTimer
All Implemented Interfaces:
Cloneable, LoopIterationListener, Serializable, 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.

Version:
$Revision: 1.12 $ $Date: 2003/05/02 21:38:10 $
Author:
Stefano Mazzocchi, Scott Eade
See Also:
Serialized Form

Field Summary
static String DELAY
           
 
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement
log
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
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, clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELAY

public static final String DELAY
See Also:
Constant Field Values
Constructor Detail

ConstantTimer

public ConstantTimer()
No-arg constructor.

Method Detail

setDelay

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

Specified by:
setDelay in interface Timer
Parameters:
delay - the delay value (this is a String as it can be set using a variable).
See Also:
Timer.setDelay(String)

setRange

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

Specified by:
setRange in interface Timer
Parameters:
range -
See Also:
Timer.setRange(double)

getDelay

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

Specified by:
getDelay in interface Timer
Returns:
the delay value for display.
See Also:
Timer.getDelay()

getRange

public double getRange()
Retrieve the range (not used for this timer).

Specified by:
getRange in interface Timer
Returns:
the range (always zero for this timer).
See Also:
Timer.getRange()

delay

public long delay()
Retrieve the delay to use during test execution.

Specified by:
delay in interface Timer
Returns:
the delay.

toString

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

Overrides:
toString in class Object
Returns:
the description of this timer class.

iterationStart

public void iterationStart(LoopIterationEvent event)
Gain access to any variables that have been defined.

Specified by:
iterationStart in interface LoopIterationListener
See Also:
LoopIterationListener.iterationStart(LoopIterationEvent)

Apache JMeter
1.9

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