Apache JMeter
2.0.1.20050615

org.apache.jmeter.control
Class ForeachController

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.control.GenericController
          extended byorg.apache.jmeter.control.ForeachController
All Implemented Interfaces:
Cloneable, Controller, Serializable, TestElement

public class ForeachController
extends GenericController
implements Serializable

Version:
$Revision: 1.3.2.2 $
Author:
Dolf Smits, Michael Stover, Thad Smith
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.jmeter.control.GenericController
GenericController.Test
 
Field Summary
 
Fields inherited from class org.apache.jmeter.control.GenericController
current, iterationListeners, subControllersAndSamplers
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
ForeachController()
           
 
Method Summary
 String getInputValString()
           
protected  int getIterCount()
           
 String getReturnValString()
           
protected  void incrementLoopCount()
           
 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.
protected  Sampler nextIsNull()
           
protected  void reInitialize()
           
protected  void resetLoopCount()
           
 void setInputVal(String inputValue)
           
 void setReturnVal(String inputValue)
           
 
Methods inherited from class org.apache.jmeter.control.GenericController
addIterationListener, addTestElement, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getSubControllers, incrementCurrent, incrementIterCount, isFirst, nextIsAController, nextIsASampler, removeCurrentElement, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jmeter.testelement.TestElement
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
 

Constructor Detail

ForeachController

public ForeachController()
Method Detail

initialize

public void initialize()
Description copied from interface: Controller
Called to initialize a controller at the beginning of a test iteration.

Specified by:
initialize in interface Controller
Overrides:
initialize in class GenericController

setInputVal

public void setInputVal(String inputValue)

getInputValString

public String getInputValString()

setReturnVal

public void setReturnVal(String inputValue)

getReturnValString

public String getReturnValString()

isDone

public boolean isDone()
Description copied from interface: Controller
Indicates whether the Controller is done delivering Samplers for the rest of the test.

Specified by:
isDone in interface Controller
Overrides:
isDone in class GenericController
See Also:
Controller.isDone()

next

public Sampler next()
Description copied from interface: Controller
Delivers the next Sampler.

Specified by:
next in interface Controller
Overrides:
next in class GenericController
See Also:
Controller.next()

nextIsNull

protected Sampler nextIsNull()
                      throws NextIsNullException
Overrides:
nextIsNull in class GenericController
Throws:
NextIsNullException

incrementLoopCount

protected void incrementLoopCount()

resetLoopCount

protected void resetLoopCount()

getIterCount

protected int getIterCount()
Overrides:
getIterCount in class GenericController

reInitialize

protected void reInitialize()
Overrides:
reInitialize in class GenericController

Apache JMeter
2.0.1.20050615

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