public class ConstantThroughputTimer
extends org.apache.jmeter.testelement.AbstractTestElement
implements org.apache.jmeter.timers.Timer, org.apache.jmeter.testelement.TestStateListener, org.apache.jmeter.testbeans.TestBean
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstantThroughputTimer.Mode
This enum defines the calculation modes used by the ConstantThroughputTimer.
|
| Constructor and Description |
|---|
ConstantThroughputTimer()
Constructor for a non-configured ConstantThroughputTimer.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
calculateCurrentTarget(long currentTime)
Calculate the target time by adding the result of private method
calculateDelay() to the given currentTime |
long |
delay()
Retrieve the delay to use during test execution.
|
int |
getCalcMode() |
double |
getThroughput()
Gets the configured desired throughput.
|
void |
setCalcMode(int mode) |
void |
setProperty(org.apache.jmeter.testelement.property.JMeterProperty property)
Override the setProperty method in order to convert
the original String calcMode property.
|
void |
setThroughput(double throughput)
Sets the desired throughput.
|
void |
testEnded() |
void |
testEnded(java.lang.String host) |
void |
testStarted()
Get the timer ready to compute delays for a new test.
|
void |
testStarted(java.lang.String host) |
java.lang.String |
toString()
Provide a description of this timer class.
|
addPropertiesValues, addProperty, addProperty, addTestElement, 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, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertypublic ConstantThroughputTimer()
public void setThroughput(double throughput)
throughput - Desired sampling rate, in samples per minute.public double getThroughput()
public int getCalcMode()
public void setCalcMode(int mode)
public long delay()
delay in interface org.apache.jmeter.timers.TimerTimer.delay()protected long calculateCurrentTarget(long currentTime)
calculateDelay() to the given currentTimecurrentTime - time in mspublic java.lang.String toString()
toString in class java.lang.Objectpublic void testStarted()
testStarted in interface org.apache.jmeter.testelement.TestStateListenerpublic void setProperty(org.apache.jmeter.testelement.property.JMeterProperty property)
setProperty in interface org.apache.jmeter.testelement.TestElementsetProperty in class org.apache.jmeter.testelement.AbstractTestElementpublic void testEnded()
testEnded in interface org.apache.jmeter.testelement.TestStateListenerpublic void testStarted(java.lang.String host)
testStarted in interface org.apache.jmeter.testelement.TestStateListenerpublic void testEnded(java.lang.String host)
testEnded in interface org.apache.jmeter.testelement.TestStateListenerCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.