|
Apache JMeter 2.1.1 |
|||||||||
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.timers.ConstantThroughputTimer
This class implements a constant throughput timer. A Constant Throughtput Timer paces the samplers under it's influence so that the total number of samples per unit of time approaches a given constant as much as possible.
Field Summary |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
ConstantThroughputTimer()
Constructor for a non-configured ConstantThroughputTimer. |
Method Summary | |
protected long |
calculateCurrentTarget(long currentTime)
|
long |
delay()
Retrieve the delay to use during test execution. |
String |
getCalcMode()
|
double |
getThroughput()
Gets the configured desired throughput. |
void |
setCalcMode(String mode)
|
void |
setThroughput(double throughput)
Sets the desired throughput. |
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()
Get the timer ready to compute delays for a new test. |
void |
testStarted(String host)
|
String |
toString()
Provide a description of this timer class. |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, 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, wait, wait, wait |
Constructor Detail |
public ConstantThroughputTimer()
Method Detail |
public void setThroughput(double throughput)
throughput
- Desired sampling rate, in samples per minute.public double getThroughput()
public String getCalcMode()
public void setCalcMode(String mode)
public long delay()
delay
in interface Timer
Timer.delay()
protected long calculateCurrentTarget(long currentTime)
currentTime
-
public String toString()
public void testStarted()
testStarted
in interface TestListener
TestListener.testStarted()
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.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |