org.apache.jmeter.control

Interface Controller

All Superinterfaces:
Cloneable, TestElement
Known Implementing Classes:
ForeachController, GenericController, IfController, IncludeController, InterleaveControl, LoopController, ModuleController, OnceOnlyController, ProxyControl, RandomController, RandomOrderController, RecordingController, RunTime, SwitchController, ThreadGroup, ThroughputController, TransactionController, WhileController

public interface Controller
extends TestElement

This interface is used by JMeterThread in the following manner: while (running && (sampler = controller.next()) != null)

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

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Method Summary

void
addIterationListener(LoopIterationListener listener)
Controllers have to notify listeners of when they begin an iteration through their sub-elements.
void
initialize()
Called to initialize a controller at the beginning of a test iteration.
boolean
isDone()
Indicates whether the Controller is done delivering Samplers for the rest of the test.
Sampler
next()
Delivers the next Sampler or null

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

addTestElement, canRemove, clear, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse

Method Details

addIterationListener

public void addIterationListener(LoopIterationListener listener)
Controllers have to notify listeners of when they begin an iteration through their sub-elements.

initialize

public void initialize()
Called to initialize a controller at the beginning of a test iteration.

isDone

public 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.
Returns:
boolean

next

public Sampler next()
Delivers the next Sampler or null
Returns:
org.apache.jmeter.samplers.Sampler or null

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