Apache JMeter
2.0.1.20050615

org.apache.jmeter.control
Class LoopController

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

public class LoopController
extends GenericController
implements Serializable

Version:
$Revision: 1.20 $
Author:
Michael Stover, Thad Smith
See Also:
Serialized Form

Nested Class Summary
static class LoopController.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
LoopController()
           
 
Method Summary
 boolean getContinueForever()
           
protected  int getIterCount()
           
 int getLoops()
           
 String getLoopString()
           
protected  void incrementLoopCount()
           
 boolean isDone()
          Indicates whether the Controller is done delivering Samplers for the rest of the test.
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(int loops)
           
 void setLoops(String loopValue)
           
 
Methods inherited from class org.apache.jmeter.control.GenericController
addIterationListener, addTestElement, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getSubControllers, incrementCurrent, incrementIterCount, initialize, isFirst, next, 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

LoopController

public LoopController()
Method Detail

setLoops

public void setLoops(int loops)

setLoops

public void setLoops(String loopValue)

getLoops

public int getLoops()

getLoopString

public String getLoopString()

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

getContinueForever

public boolean getContinueForever()

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()

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.