Class PreciseThroughputTimer
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,org.apache.jmeter.gui.Searchable,org.apache.jmeter.testbeans.TestBean,org.apache.jmeter.testelement.TestElement,org.apache.jmeter.timers.Timer,org.apache.jmeter.timers.poissonarrivals.DurationProvider,org.apache.jmeter.timers.poissonarrivals.ThroughputProvider
public class PreciseThroughputTimer extends AbstractTestElement implements Cloneable, Timer, TestBean, ThroughputProvider, DurationProvider
This timer generates Poisson arrivals with constant throughput. On top of that, it tries to maintain the exact amount of arrivals for a given timeframe (throughputPeriod).
- Since:
4.0
-
-
Field Summary
Fields Modifier and Type Field Description public doublethroughputpublic intthroughputPeriodpublic longdurationpublic intexactLimitpublic doubleallowedThroughputSurpluspublic LongrandomSeedpublic intbatchSizepublic intbatchThreadDelaypublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description PreciseThroughputTimer()
-
Method Summary
Modifier and Type Method Description doublegetThroughput()Returns number of generated samples per getThroughputPeriod voidsetThroughput(double throughput)Sets number of generated samples per getThroughputPeriod intgetThroughputPeriod()Allows to use business values for throughput configuration. voidsetThroughputPeriod(int throughputPeriod)longgetDuration()voidsetDuration(long duration)intgetExactLimit()voidsetExactLimit(int exactLimit)doublegetAllowedThroughputSurplus()voidsetAllowedThroughputSurplus(double allowedThroughputSurplus)LonggetRandomSeed()voidsetRandomSeed(Long randomSeed)intgetBatchSize()voidsetBatchSize(int batchSize)intgetBatchThreadDelay()voidsetBatchThreadDelay(int batchThreadDelay)Objectclone()longdelay()-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse -
Methods inherited from class org.apache.jmeter.timers.Timer
isModifiable -
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getThroughput
double getThroughput()
Returns number of generated samples per getThroughputPeriod
- Returns:
number of samples per getThroughputPeriod
-
setThroughput
void setThroughput(double throughput)
Sets number of generated samples per getThroughputPeriod
- Parameters:
throughput- number of samples per getThroughputPeriod
-
getThroughputPeriod
int getThroughputPeriod()
Allows to use business values for throughput configuration. For instance, 100 samples per hour vs 100 samples per minute.
- Returns:
the length of the throughput period in seconds
-
setThroughputPeriod
void setThroughputPeriod(int throughputPeriod)
-
getDuration
long getDuration()
-
setDuration
void setDuration(long duration)
-
getExactLimit
@Deprecated()@API(status = API.Status.DEPRECATED, since = "5.3.0") int getExactLimit()
-
setExactLimit
@Deprecated()@API(status = API.Status.DEPRECATED, since = "5.3.0") void setExactLimit(int exactLimit)
-
getAllowedThroughputSurplus
@Deprecated()@API(status = API.Status.DEPRECATED, since = "5.3.0") double getAllowedThroughputSurplus()
-
setAllowedThroughputSurplus
@Deprecated()@API(status = API.Status.DEPRECATED, since = "5.3.0") void setAllowedThroughputSurplus(double allowedThroughputSurplus)
-
getRandomSeed
Long getRandomSeed()
-
setRandomSeed
void setRandomSeed(Long randomSeed)
-
getBatchSize
int getBatchSize()
-
setBatchSize
void setBatchSize(int batchSize)
-
getBatchThreadDelay
int getBatchThreadDelay()
-
setBatchThreadDelay
void setBatchThreadDelay(int batchThreadDelay)
-
delay
long delay()
-
-
-
-