public class SyncTimer extends AbstractTestElement implements Timer, Serializable, TestBean
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
SyncTimer() |
Modifier and Type | Method and Description |
---|---|
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) |
addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, 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
public int getGroupSize()
public void setGroupSize(int numThreads)
numThreads
- The numThreads to set.public long delay()
public Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.