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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstantTimer() No-arg constructor.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

      • ConstantTimer

        ConstantTimer()
        No-arg constructor.
    • 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.

      • toString

         String toString()

        Provide a description of this timer class.

      • iterationStart

         void iterationStart(LoopIterationEvent event)

        Gain access to any variables that have been defined.