public class ThroughputController extends GenericController implements Serializable, LoopIterationListener, TestStateListener
| Modifier and Type | Field and Description |
|---|---|
static int |
BYNUMBER |
static int |
BYPERCENT |
current, subControllersAndSamplersCOMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
ThroughputController() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
String |
getMaxThroughput() |
protected int |
getMaxThroughputAsInt() |
String |
getPercentThroughput() |
protected float |
getPercentThroughputAsFloat() |
int |
getStyle() |
boolean |
isDone()
Indicates whether the Controller is done delivering Samplers for the rest
of the test.
|
boolean |
isPerThread() |
void |
iterationStart(LoopIterationEvent iterEvent)
Called when a loop iteration is about to start.
|
Sampler |
next()
Determines the next sampler to be processed.
|
protected Object |
readResolve() |
void |
setMaxThroughput(int maxThroughput) |
void |
setMaxThroughput(String maxThroughput) |
void |
setPercentThroughput(float percentThroughput) |
void |
setPercentThroughput(String percentThroughput) |
void |
setPerThread(boolean perThread) |
void |
setStyle(int style) |
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(String host)
Called once for all threads after the end of a test.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(String host)
Called just before the start of the test from the main engine thread.
|
addIterationListener, addTestElement, addTestElementOnce, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, initializeSubControllers, isFirst, nextIsAController, nextIsASampler, nextIsNull, reInitialize, removeCurrentElement, removeIterationListener, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst, triggerEndOfLoopaddPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, 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, traversePropertyfinalize, getClass, notify, notifyAll, toString, wait, wait, waitcanRemove, clear, clearTestElementChildren, 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, traversepublic static final int BYNUMBER
public static final int BYPERCENT
public void setStyle(int style)
public int getStyle()
public void setPerThread(boolean perThread)
public boolean isPerThread()
public void setMaxThroughput(int maxThroughput)
public void setMaxThroughput(String maxThroughput)
public String getMaxThroughput()
protected int getMaxThroughputAsInt()
public void setPercentThroughput(float percentThroughput)
public void setPercentThroughput(String percentThroughput)
public String getPercentThroughput()
protected float getPercentThroughputAsFloat()
public Sampler next()
GenericControllerDetermines 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 Controllernext in class GenericControllernullpublic boolean isDone()
ControllerisDone in interface ControllerisDone in class GenericControllerController.isDone()public Object clone()
clone in interface TestElementclone in class AbstractTestElementpublic void iterationStart(LoopIterationEvent iterEvent)
LoopIterationListeneriterationStart in interface LoopIterationListeneriterEvent - the eventpublic void testStarted()
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerStandardJMeterEngine.run()public void testStarted(String host)
TestStateListenerCalled just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted in interface TestStateListenerhost - name of hostStandardJMeterEngine.run()public void testEnded()
TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestStateListenerStandardJMeterEngine.stopTest()public void testEnded(String host)
TestStateListenerCalled once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded in interface TestStateListenerhost - name of hostStandardJMeterEngine.stopTest()protected Object readResolve()
readResolve in class GenericControllerCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.