org.apache.jmeter.timers
Class SyncTimer
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.timers.SyncTimer
- All Implemented Interfaces:
- Cloneable, Serializable, TestBean, TestElement, Timer
- public class SyncTimer
- extends AbstractTestElement
- implements Timer, Serializable, TestBean
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.
- Author:
- mike
- See Also:
- Serialized Form
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)
|
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, canRemove, clear, clearTemporary, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty |
SyncTimer
public SyncTimer()
getGroupSize
public int getGroupSize()
- Returns:
- Returns the numThreads.
setGroupSize
public void setGroupSize(int numThreads)
- Parameters:
numThreads
- The numThreads to set.
delay
public long delay()
- Description copied from interface:
Timer
- This method is called after a sampling process is done to know how much
time the sampling thread has to wait until sampling again.
- Specified by:
delay
in interface Timer
- Returns:
- the computed delay value.
clone
public 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.
- Specified by:
clone
in interface TestElement
- Overrides:
clone
in class AbstractTestElement
Copyright © 1998-2008 Apache Software Foundation. All Rights Reserved.