public class ArrivalsThreadGroup extends AbstractDynamicThreadGroup
| Modifier and Type | Field and Description |
|---|---|
protected AtomicLong |
abandonsCount |
static String |
ARRIVALS_LIMIT |
protected AtomicLong |
arrivalsCount |
protected AtomicLong |
completionsCount |
static String |
CONCURRENCY_LIMIT |
protected Set<DynamicThread> |
poolThreads |
threadStarter, UNIT, UNIT_MINUTES, UNIT_SECONDSHOLD, ITERATIONS, LOG_FILENAME, logFile, RAMP_UP, running, STEPS, TARGET_LEVEL, threads, WAIT_TO_DIE| Constructor and Description |
|---|
ArrivalsThreadGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
abandonFact(org.apache.jmeter.threads.JMeterThread thread,
long arrivalID) |
void |
addThread(DynamicThread threadWorker) |
void |
arrivalFact(org.apache.jmeter.threads.JMeterThread thread,
long arrivalID) |
boolean |
canCreateMoreThreads() |
void |
completionFact(org.apache.jmeter.threads.JMeterThread thread,
long arrivalID) |
String |
getArrivalsLimit() |
String |
getConcurrencyLimit() |
int |
getNumThreads() |
protected Thread |
getThreadStarter(int groupIndex,
org.apache.jmeter.threads.ListenerNotifier listenerNotifier,
org.apache.jorphan.collections.ListedHashTree testTree,
org.apache.jmeter.engine.StandardJMeterEngine engine) |
boolean |
isLimitReached() |
boolean |
movedToPool(DynamicThread thread) |
void |
releaseAllPoolThreads() |
boolean |
releasedPoolThread() |
void |
setArrivalsLimit(String value) |
void |
setConcurrencyLimit(String value) |
void |
start(int groupIndex,
org.apache.jmeter.threads.ListenerNotifier listenerNotifier,
org.apache.jorphan.collections.ListedHashTree testTree,
org.apache.jmeter.engine.StandardJMeterEngine engine) |
void |
stop()
Forceful stop of test calls this
|
void |
tellThreadsToStop()
Graceful shutdown of test calls this, then #verifyThreadsStopped
|
void |
testEnded(String s) |
boolean |
verifyThreadsStopped() |
getUnit, getUnitFactor, getUnitStr, getUnitStr, isRunning, joinThreadFrom, setUnit, startNextLoop, stopThread, threadFinished, waitThreadsStoppedgetHold, getHoldSeconds, getIterationsLimit, getIterationsLimitAsLong, getLogFilename, getNumberOfThreads, getRampUp, getRampUpSeconds, getSteps, getStepsAsLong, getTargetLevel, getTargetLevelAsDouble, getTargetLevelAsInt, getTargetLevelFactored, numberOfActiveThreads, saveLogRecord, setHold, setIterationsLimit, setLogFilename, setRampUp, setSteps, setTargetLevel, testEnded, testStarted, testStartedaddIterationListener, addTestElement, addTestElementOnce, getOnErrorStartNextLoop, getOnErrorStopTest, getOnErrorStopTestNow, getOnErrorStopThread, getSamplerController, initialize, isDone, next, removeIterationListener, setNumThreads, setSamplerController, triggerEndOfLoopaddPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyfinalize, getClass, notify, notifyAll, toString, wait, wait, waitcanRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traversepublic static final String CONCURRENCY_LIMIT
public static final String ARRIVALS_LIMIT
protected final AtomicLong arrivalsCount
protected final AtomicLong completionsCount
protected AtomicLong abandonsCount
protected final Set<DynamicThread> poolThreads
public void start(int groupIndex,
org.apache.jmeter.threads.ListenerNotifier listenerNotifier,
org.apache.jorphan.collections.ListedHashTree testTree,
org.apache.jmeter.engine.StandardJMeterEngine engine)
start in class AbstractDynamicThreadGrouppublic int getNumThreads()
getNumThreads in class org.apache.jmeter.threads.AbstractThreadGrouppublic void addThread(DynamicThread threadWorker)
addThread in class AbstractDynamicThreadGroupModelprotected Thread getThreadStarter(int groupIndex, org.apache.jmeter.threads.ListenerNotifier listenerNotifier, org.apache.jorphan.collections.ListedHashTree testTree, org.apache.jmeter.engine.StandardJMeterEngine engine)
getThreadStarter in class AbstractDynamicThreadGrouppublic void stop()
stop in class AbstractDynamicThreadGrouppublic void tellThreadsToStop()
tellThreadsToStop in class AbstractDynamicThreadGrouppublic boolean verifyThreadsStopped()
verifyThreadsStopped in class AbstractDynamicThreadGrouppublic boolean movedToPool(DynamicThread thread)
public boolean releasedPoolThread()
public boolean isLimitReached()
isLimitReached in class AbstractDynamicThreadGrouppublic void arrivalFact(org.apache.jmeter.threads.JMeterThread thread,
long arrivalID)
public void completionFact(org.apache.jmeter.threads.JMeterThread thread,
long arrivalID)
public void abandonFact(org.apache.jmeter.threads.JMeterThread thread,
long arrivalID)
public boolean canCreateMoreThreads()
public void setConcurrencyLimit(String value)
public String getConcurrencyLimit()
public void setArrivalsLimit(String value)
public String getArrivalsLimit()
public void testEnded(String s)
testEnded in interface org.apache.jmeter.testelement.TestStateListenertestEnded in class AbstractDynamicThreadGroupModelpublic void releaseAllPoolThreads()
Copyright © 2017. All rights reserved.