org.apache.jmeter.timers

Class SyncTimer

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.

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

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()
int
getGroupSize()
void
setGroupSize(int numThreads)

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Method Details

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 interface AbstractTestElement

delay

public long delay()
Specified by:
delay in interface Timer

getGroupSize

public int getGroupSize()
Returns:
Returns the numThreads.

setGroupSize

public void setGroupSize(int numThreads)
Parameters:
numThreads - The numThreads to set.

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.