Apache JMeter
2.0.1.20050615

org.apache.jmeter.control
Interface Controller

All Superinterfaces:
Cloneable, TestElement
All Known Implementing Classes:
GenericController, ThreadGroup, TransactionController

public interface Controller
extends TestElement

This interface will typically be used in the following manner: Controller controller; //gets initialized while(!controller.isDone() && controller.hasNext()) { Sampler sampler = controller.next(); return sampler; }

Version:
$Revision: 1.8 $
Author:
Michael Stover, Thad Smith

Field Summary
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
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.
 
Methods inherited from interface org.apache.jmeter.testelement.TestElement
addTestElement, canRemove, clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse
 

Method Detail

next

public Sampler next()
Delivers the next Sampler.

Returns:
org.apache.jmeter.samplers.Sampler

isDone

public boolean isDone()
Indicates whether the Controller is done delivering Samplers for the rest of the test.

Returns:
boolean

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.


Apache JMeter
2.0.1.20050615

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