|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.timers.SyncTimer
public class SyncTimer
The purpose of the SyncTimer is to block threads until X number of threads have been blocked, and then they are all released at once. A SyncTimer can thus create large instant loads at various points of the test plan.
Field Summary |
---|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
SyncTimer()
|
Method Summary | |
---|---|
Object |
clone()
We have to control the cloning process because we need some cross-thread communication if our synctimers are to be able to determine when to block and when to release. |
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. |
int |
getGroupSize()
|
void |
setGroupSize(int numThreads)
|
void |
testEnded()
Called once for all threads after the end of a test. |
void |
testEnded(String host)
Reset timerCounter |
void |
testStarted()
Called just before the start of the test from the main engine thread. |
void |
testStarted(String host)
Reset timerCounter |
void |
threadFinished()
Called for each thread after all samples have been processed. |
void |
threadStarted()
Called for each thread before starting sampling. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SyncTimer()
Method Detail |
---|
public int getGroupSize()
public void setGroupSize(int numThreads)
numThreads
- The numThreads to set.public long delay()
delay
in interface Timer
public Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
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 TestStateListener
StandardJMeterEngine.stopTest()
public void testEnded(String host)
testEnded
in interface TestStateListener
host
- name of hostStandardJMeterEngine.stopTest()
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 TestStateListener
StandardJMeterEngine.run()
public void testStarted(String host)
testStarted
in interface TestStateListener
host
- name of hostStandardJMeterEngine.run()
public void threadStarted()
ThreadListener
threadStarted
in interface ThreadListener
JMeterThread.threadStarted()
public void threadFinished()
ThreadListener
threadFinished
in interface ThreadListener
JMeterThread.threadFinished(LoopIterationListener)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |