public class InterleaveControl extends GenericController implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
IGNORE_SUB_CONTROLLERS |
static int |
USE_SUB_CONTROLLERS |
current, subControllersAndSamplers
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
InterleaveControl()
Constructor for the InterleaveControl object
|
Modifier and Type | Method and Description |
---|---|
protected void |
currentReturnedNull(Controller c)
If the controller is done, remove it from the list,
otherwise increment to next entry in list.
|
boolean |
getInterleaveAccrossThreads() |
int |
getStyle() |
protected void |
incrementCurrent()
Increments the current pointer; called by currentReturnedNull to move the
controller on to its next child.
|
void |
initialize()
Called to initialize a controller at the beginning of a test iteration.
|
protected boolean |
isSkipNext() |
Sampler |
next()
Determines the next sampler to be processed.
|
protected Sampler |
nextIsAController(Controller controller)
Called by
GenericController.next() if the element is a Controller, and returns the
next sampler from the controller. |
protected Sampler |
nextIsASampler(Sampler element)
Increment the current pointer and return the element.
|
protected Sampler |
nextIsNull()
If the current is null, reset and continue searching.
|
void |
reInitialize()
Resets the controller (called after execution of last child of controller):
resetCurrent() (i.e.
|
protected void |
setCurrentElement(TestElement currentElement)
Empty implementation - does nothing.
|
void |
setInterleaveAccrossThreads(boolean accrossThreads) |
protected void |
setSkipNext(boolean skipNext) |
void |
setStyle(int style) |
addIterationListener, addTestElement, addTestElementOnce, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getSubControllers, incrementIterCount, initializeSubControllers, isDone, isFirst, readResolve, removeCurrentElement, removeIterationListener, resetCurrent, resetIterCount, setDone, setFirst, triggerEndOfLoop
addPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
public static final int IGNORE_SUB_CONTROLLERS
public static final int USE_SUB_CONTROLLERS
public InterleaveControl()
public void reInitialize()
reInitialize
in class GenericController
public void setStyle(int style)
public int getStyle()
public void setInterleaveAccrossThreads(boolean accrossThreads)
public boolean getInterleaveAccrossThreads()
public Sampler next()
Determines the next sampler to be processed.
If GenericController.isDone()
is true
, returns null.
Gets the list element using current pointer.
If this is null
, calls GenericController.nextIsNull()
.
If the list element is a Sampler
, calls GenericController.nextIsASampler(Sampler)
,
otherwise calls GenericController.nextIsAController(Controller)
If any of the called methods throws NextIsNullException
, returns null
,
otherwise the value obtained above is returned.
next
in interface Controller
next
in class GenericController
null
protected Sampler nextIsAController(Controller controller) throws NextIsNullException
GenericController.next()
if the element is a Controller, and returns the
next sampler from the controller. If this is null
, then
updates the current pointer and makes recursive call to GenericController.next()
.nextIsAController
in class GenericController
controller
- the current next elementNextIsNullException
- when the end of the list has already been reachedprotected Sampler nextIsASampler(Sampler element) throws NextIsNullException
GenericController.next()
if the element is a sampler. (May be overridden by
sub-classes).nextIsASampler
in class GenericController
element
- the current next elementNextIsNullException
- when the end of the list has already been reachedprotected Sampler nextIsNull()
Called by GenericController.next()
when GenericController.getCurrentElement()
returns null
.
Reinitialises the controller.
nextIsNull
in class GenericController
protected void setCurrentElement(TestElement currentElement) throws NextIsNullException
setCurrentElement
in class GenericController
currentElement
- the current elementNextIsNullException
- when the list has been completed alreadyprotected void currentReturnedNull(Controller c)
currentReturnedNull
in class GenericController
c
- controllerprotected boolean isSkipNext()
protected void setSkipNext(boolean skipNext)
protected void incrementCurrent()
incrementCurrent
in class GenericController
public void initialize()
Controller
initialize
in interface Controller
initialize
in class GenericController
GenericController.initialize()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.