org.apache.jmeter.timers
public class ConstantThroughputTimer extends AbstractTestElement implements Timer, TestListener, TestBean
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
ConstantThroughputTimer()
Constructor for a non-configured ConstantThroughputTimer.
|
Modifier and Type | Method and Description |
---|---|
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)
Called once for all threads after the end of a test.
|
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is
fired for each thread.
|
void |
testStarted()
Get the timer ready to compute delays for a new test.
|
void |
testStarted(String host)
Called just before the start of the test from the main engine thread.
|
String |
toString()
Provide a description of this timer class.
|
addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
public ConstantThroughputTimer()
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()
Called 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 TestListener
StandardJMeterEngine.run()
public void testEnded()
Called 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 TestListener
StandardJMeterEngine.stopTest()
public void testStarted(String host)
Called 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 TestListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded(String host)
Called 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 TestListener
host
- name of hostStandardJMeterEngine.stopTest()
public void testIterationStart(LoopIterationEvent event)
testIterationStart
in interface TestListener
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.