org.apache.jmeter.control

Class LoopController

Implemented Interfaces:
Cloneable, Serializable, Controller, TestElement

public class LoopController
extends GenericController
implements Serializable

Class that implements the Loop Controller.

Field Summary

Fields inherited from class org.apache.jmeter.control.GenericController

current, subControllersAndSamplers

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

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Constructor Summary

LoopController()

Method Summary

protected int
getIterCount()
String
getLoopString()
int
getLoops()
protected void
incrementLoopCount()
Sampler
next()
protected Sampler
nextIsNull()
protected void
reInitialize()
protected void
resetLoopCount()
void
setContinueForever(boolean forever)
Determines whether the loop will return any samples if it is rerun.
void
setLoops(String loopValue)
void
setLoops(int loops)

Methods inherited from class org.apache.jmeter.control.GenericController

addIterationListener, addTestElement, currentReturnedNull, fireIterEvents, fireIterationStart, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, isDone, isFirst, next, nextIsAController, nextIsASampler, nextIsNull, reInitialize, removeCurrentElement, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Constructor Details

LoopController

public LoopController()

Method Details

getIterCount

protected int getIterCount()
Overrides:
getIterCount in interface GenericController

getLoopString

public String getLoopString()

getLoops

public int getLoops()

incrementLoopCount

protected void incrementLoopCount()

next

public Sampler next()
Specified by:
next in interface Controller
Overrides:
next in interface GenericController

nextIsNull

protected Sampler nextIsNull()
            throws NextIsNullException
Overrides:
nextIsNull in interface GenericController

reInitialize

protected void reInitialize()
Overrides:
reInitialize in interface GenericController

resetLoopCount

protected void resetLoopCount()

setContinueForever

public void setContinueForever(boolean forever)
Determines whether the loop will return any samples if it is rerun.
Parameters:
forever - true if the loop must be reset after ending a run

setLoops

public void setLoops(String loopValue)

setLoops

public void setLoops(int loops)

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