|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.control.GenericController
org.apache.jmeter.control.ThroughputController
This class represents a controller that can controll the number of times that it is executed, either by the total number of times the user wants the controller executed (BYNUMBER) or by the percentage of time it is called (BYPERCENT)
Field Summary | |
static int |
BYNUMBER
|
static int |
BYPERCENT
|
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 | |
ThroughputController()
|
Method Summary | |
Object |
clone()
|
protected int |
getExecutions()
|
protected int |
getIteration()
|
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)
|
Sampler |
next()
Delivers the next Sampler. |
protected void |
setExecutions(int executions)
|
protected void |
setIteration(int iteration)
|
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)
|
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is fired. |
void |
testStarted()
Called just before the start of the test Note that not all the test variables will have been set up at this point. |
void |
testStarted(String host)
|
Methods inherited from class org.apache.jmeter.control.GenericController |
addIterationListener, addTestElement, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, isFirst, nextIsAController, nextIsASampler, nextIsNull, reInitialize, removeCurrentElement, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst |
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, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse |
Field Detail |
public static final int BYNUMBER
public static final int BYPERCENT
Constructor Detail |
public ThroughputController()
Method Detail |
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()
protected void setExecutions(int executions)
protected int getExecutions()
protected void setIteration(int iteration)
protected int getIteration()
public Sampler next()
Controller
next
in interface Controller
next
in class GenericController
Controller.next()
public boolean isDone()
Controller
isDone
in interface Controller
isDone
in class GenericController
Controller.isDone()
public Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
public void iterationStart(LoopIterationEvent iterEvent)
iterationStart
in interface LoopIterationListener
public void testStarted()
TestListener
testStarted
in interface TestListener
StandardJMeterEngine.run()
public void testEnded()
TestListener
testEnded
in interface TestListener
StandardJMeterEngine.stopTest()
public void testStarted(String host)
testStarted
in interface TestListener
public void testEnded(String host)
testEnded
in interface TestListener
public void testIterationStart(LoopIterationEvent event)
TestListener
testIterationStart
in interface TestListener
event
-
|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |