Interface Controller

  • All Implemented Interfaces:
    java.lang.Cloneable , org.apache.jmeter.testelement.TestElement

    
    public interface Controller
     implements TestElement
                        

    This interface is used by JMeterThread in the following manner:

    while (running && (sampler = controller.next()) != null)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Sampler next() Delivers the next Sampler or null
      abstract boolean isDone() Indicates whether the Controller is done delivering Samplers for the rest of the test.
      abstract void addIterationListener(LoopIterationListener listener) Controllers have to notify listeners of when they begin an iteration through their sub-elements.
      abstract void initialize() Called to initialize a controller at the beginning of a test iteration.
      abstract void removeIterationListener(LoopIterationListener iterationListener) Unregister IterationListener
      abstract void triggerEndOfLoop() Trigger end of loop condition on controller (used by Start Next Loop feature)
      • Methods inherited from class org.apache.jmeter.testelement.TestElement

        addTestElement, canRemove, clear, clearTestElementChildren, clone, get, get, get, get, get, get, get, get, get, getComment, getName, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getProps, getSchema, getString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, removed, set, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • next

         abstract Sampler next()

        Delivers the next Sampler or null

      • isDone

         abstract boolean isDone()

        Indicates whether the Controller is done delivering Samplers for the rest of the test. When the top-level controller returns true to JMeterThread, the thread is complete.

      • initialize

         abstract void initialize()

        Called to initialize a controller at the beginning of a test iteration.

      • triggerEndOfLoop

         abstract void triggerEndOfLoop()

        Trigger end of loop condition on controller (used by Start Next Loop feature)