public class PreciseThroughputTimer extends AbstractTestElement implements Cloneable, Timer, TestStateListener, TestBean
throughputPeriod
).COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
PreciseThroughputTimer() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
long |
delay()
This method is called after a sampling process is done to know how much
time the sampling thread has to wait until sampling again.
|
double |
getAllowedThroughputSurplus()
Deprecated.
|
int |
getBatchSize() |
int |
getBatchThreadDelay() |
long |
getDuration() |
int |
getExactLimit()
Deprecated.
|
Long |
getRandomSeed() |
double |
getThroughput()
Returns number of generated samples per
getThroughputPeriod() |
int |
getThroughputPeriod()
Allows to use business values for throughput configuration.
|
void |
setAllowedThroughputSurplus(double allowedThroughputSurplus)
Deprecated.
|
void |
setBatchSize(int batchSize) |
void |
setBatchThreadDelay(int batchThreadDelay) |
void |
setDuration(long duration) |
void |
setExactLimit(int exactLimit)
Deprecated.
|
void |
setRandomSeed(Long randomSeed) |
void |
setThroughput(double throughput)
Sets number of generated samples per
getThroughputPeriod() |
void |
setThroughputPeriod(int throughputPeriod) |
void |
testEnded()
Called once for all threads after the end of a test.
|
void |
testEnded(String s)
Called once for all threads after the end of a test.
|
void |
testStarted()
Called just before the start of the test from the main engine thread.
|
void |
testStarted(String host)
Called just before the start of the test from the main engine thread.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, 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, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isModifiable
removed
public Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
public void testStarted()
TestStateListener
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 TestStateListener
StandardJMeterEngine.run()
public void testStarted(String host)
TestStateListener
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 TestStateListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded()
TestStateListener
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 TestStateListener
StandardJMeterEngine.stopTest()
public void testEnded(String s)
TestStateListener
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 TestStateListener
s
- name of hostStandardJMeterEngine.stopTest()
public long delay()
Timer
public double getThroughput()
getThroughputPeriod()
getThroughputPeriod()
public void setThroughput(double throughput)
getThroughputPeriod()
throughput
- number of samples per getThroughputPeriod()
public int getThroughputPeriod()
public void setThroughputPeriod(int throughputPeriod)
public long getDuration()
public void setDuration(long duration)
@Deprecated @API(status=DEPRECATED, since="5.3.0") public int getExactLimit()
@Deprecated @API(status=DEPRECATED, since="5.3.0") public void setExactLimit(int exactLimit)
@Deprecated @API(status=DEPRECATED, since="5.3.0") public double getAllowedThroughputSurplus()
@Deprecated @API(status=DEPRECATED, since="5.3.0") public void setAllowedThroughputSurplus(double allowedThroughputSurplus)
public Long getRandomSeed()
public void setRandomSeed(Long randomSeed)
public int getBatchSize()
public void setBatchSize(int batchSize)
public int getBatchThreadDelay()
public void setBatchThreadDelay(int batchThreadDelay)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.