Package org.apache.jmeter.modifiers
Class CounterConfig
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,org.apache.jmeter.engine.event.LoopIterationListener,org.apache.jmeter.engine.util.NoThreadClone,org.apache.jmeter.gui.Searchable,org.apache.jmeter.testelement.TestElement,org.apache.jmeter.testelement.ThreadListener
public class CounterConfig extends AbstractTestElement implements Serializable, LoopIterationListener, NoThreadClone, ThreadListener
Provides a counter per-thread(user) or per-thread group.
-
-
Field Summary
Fields Modifier and Type Field Description public transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description CounterConfig()
-
Method Summary
Modifier and Type Method Description voiditerationStart(LoopIterationEvent event)voidsetStart(long start)voidsetStart(String start)longgetStart()StringgetStartAsString()voidsetEnd(long end)voidsetEnd(String end)voidsetResetOnThreadGroupIteration(boolean value)Configures if the counter must be reset on Thread Group Iteration. booleanisResetOnThreadGroupIteration()Returns true if counter must be reset on Thread Group Iteration. longgetEnd()Returns counter upper limit (default Long.MAX_VALUE).StringgetEndAsString()voidsetIncrement(long inc)voidsetIncrement(String incr)longgetIncrement()StringgetIncrementAsString()voidsetIsPerUser(boolean isPer)booleanisPerUser()voidsetVarName(String name)StringgetVarName()voidsetFormat(String format)StringgetFormat()voidthreadStarted()voidthreadFinished()-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse -
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
iterationStart
void iterationStart(LoopIterationEvent event)
-
setStart
void setStart(long start)
-
getStart
long getStart()
-
getStartAsString
String getStartAsString()
-
setEnd
void setEnd(long end)
-
setResetOnThreadGroupIteration
void setResetOnThreadGroupIteration(boolean value)
Configures if the counter must be reset on Thread Group Iteration.
- Parameters:
value- boolean indicating if counter must be reset on Thread Group Iteration
-
isResetOnThreadGroupIteration
boolean isResetOnThreadGroupIteration()
Returns true if counter must be reset on Thread Group Iteration.
- Returns:
true if counter must be reset on Thread Group Iteration
-
getEnd
long getEnd()
Returns counter upper limit (default
Long.MAX_VALUE).- Returns:
counter upper limit (default Long.MAX_VALUE)
-
getEndAsString
String getEndAsString()
-
setIncrement
void setIncrement(long inc)
-
setIncrement
void setIncrement(String incr)
-
getIncrement
long getIncrement()
-
getIncrementAsString
String getIncrementAsString()
-
setIsPerUser
void setIsPerUser(boolean isPer)
-
isPerUser
boolean isPerUser()
-
setVarName
void setVarName(String name)
-
getVarName
String getVarName()
-
threadStarted
void threadStarted()
-
threadFinished
void threadFinished()
-
-
-
-