|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.threads.ThreadGroup
ThreadGroup holds the settings for a JMeter thread group. This class is intended to be ThreadSafe.
Field Summary | |
static String |
DELAY
Scheduler start delay, overrides start time |
static String |
DURATION
Scheduler duration, overrides end time |
static String |
END_TIME
Scheduler absolute end time |
static String |
MAIN_CONTROLLER
|
static String |
NUM_THREADS
Number of threads in the thread group |
static String |
ON_SAMPLE_ERROR
Action to be taken when a Sampler error occurs |
static String |
ON_SAMPLE_ERROR_CONTINUE
Continue, i.e. ignore sampler errors |
static String |
ON_SAMPLE_ERROR_STOPTEST
Stop test (all threads) if sampler error occurs |
static String |
ON_SAMPLE_ERROR_STOPTEST_NOW
Stop test NOW (all threads) if sampler error occurs |
static String |
ON_SAMPLE_ERROR_STOPTHREAD
Stop current thread if sampler error occurs |
static String |
RAMP_TIME
Ramp-up time |
static String |
SCHEDULER
Whether scheduler is being used |
static String |
START_TIME
Scheduler absolute start time |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
ThreadGroup()
No-arg constructor. |
Method Summary | |
void |
addIterationListener(LoopIterationListener lis)
Controllers have to notify listeners of when they begin an iteration through their sub-elements. |
void |
addTestElement(TestElement child)
Add a test element. |
long |
getDelay()
Get the startup delay |
long |
getDuration()
Get the desired duration of the thread group test run |
long |
getEndTime()
Get the end time value. |
int |
getNumberOfThreads()
Get the number of active threads |
int |
getNumThreads()
Get the number of threads. |
boolean |
getOnErrorStopTest()
Check if a sampler error should cause test to stop. |
boolean |
getOnErrorStopTestNow()
Check if a sampler error should cause test to stop now. |
boolean |
getOnErrorStopThread()
Check if a sampler error should cause thread to stop. |
int |
getRampUp()
Get the ramp-up value. |
Controller |
getSamplerController()
Get the sampler controller. |
boolean |
getScheduler()
Get whether scheduler is being used |
long |
getStartTime()
Get the absolute start time value. |
void |
initialize()
Called to initialize a controller at the beginning of a test iteration. |
boolean |
isDone()
Indicates whether the Controller is done delivering Samplers for the rest of the test. When the top-level controller returns true to JMeterThread, the thread is complete. |
Sampler |
next()
Delivers the next Sampler or null |
void |
setDelay(long delay)
Set the startup delay |
void |
setDuration(long duration)
Set the desired duration of the thread group test run |
void |
setEndTime(long etime)
Set the EndTime value. |
void |
setNumThreads(int numThreads)
Set the total number of threads to start |
void |
setRampUp(int rampUp)
Set the ramp-up value. |
void |
setSamplerController(LoopController c)
Set the sampler controller. |
void |
setScheduler(boolean Scheduler)
Set whether scheduler is being used |
void |
setStartTime(long stime)
Set the absolute StartTime value. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
canRemove, clear, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
Field Detail |
public static final String NUM_THREADS
public static final String RAMP_TIME
public static final String MAIN_CONTROLLER
public static final String SCHEDULER
public static final String START_TIME
public static final String END_TIME
public static final String DURATION
public static final String DELAY
public static final String ON_SAMPLE_ERROR
public static final String ON_SAMPLE_ERROR_CONTINUE
public static final String ON_SAMPLE_ERROR_STOPTHREAD
public static final String ON_SAMPLE_ERROR_STOPTEST
public static final String ON_SAMPLE_ERROR_STOPTEST_NOW
Constructor Detail |
public ThreadGroup()
Method Detail |
public void setNumThreads(int numThreads)
numThreads
- the number of threads.public int getNumberOfThreads()
public boolean isDone()
isDone
in interface Controller
public Sampler next()
next
in interface Controller
public void setScheduler(boolean Scheduler)
Scheduler
- true is scheduler is to be usedpublic boolean getScheduler()
public void setStartTime(long stime)
stime
- -
the StartTime value.public long getStartTime()
public long getDuration()
public void setDuration(long duration)
duration
- in secondspublic long getDelay()
public void setDelay(long delay)
delay
- in secondspublic void setEndTime(long etime)
etime
- -
the EndTime value.public long getEndTime()
public void setRampUp(int rampUp)
rampUp
- the ramp-up value.public int getRampUp()
public Controller getSamplerController()
public void setSamplerController(LoopController c)
c
- the sampler controller.public int getNumThreads()
public void addTestElement(TestElement child)
addTestElement
in interface TestElement
addTestElement
in class AbstractTestElement
child
- the test element to add.public void addIterationListener(LoopIterationListener lis)
addIterationListener
in interface Controller
public void initialize()
initialize
in interface Controller
public boolean getOnErrorStopThread()
public boolean getOnErrorStopTest()
public boolean getOnErrorStopTestNow()
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |