Package org.apache.jmeter.control
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)
-
-
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
-
-
Method Detail
-
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.
-
addIterationListener
abstract void addIterationListener(LoopIterationListener listener)
Controllers have to notify listeners of when they begin an iteration through their sub-elements.
- Parameters:
listener
- The LoopIterationListener to add
-
initialize
abstract void initialize()
Called to initialize a controller at the beginning of a test iteration.
-
removeIterationListener
abstract void removeIterationListener(LoopIterationListener iterationListener)
Unregister IterationListener
- Parameters:
iterationListener
- LoopIterationListener
-
triggerEndOfLoop
abstract void triggerEndOfLoop()
Trigger end of loop condition on controller (used by Start Next Loop feature)
-
-
-
-