ThreadGroup holds the settings for a JMeter thread group.
This class is intended to be ThreadSafe.
DELAY
public static final String DELAY
Scheduler start delay, overrides start time
DURATION
public static final String DURATION
Scheduler duration, overrides end time
END_TIME
public static final String END_TIME
Scheduler absolute end time
MAIN_CONTROLLER
public static final String MAIN_CONTROLLER
NUM_THREADS
public static final String NUM_THREADS
Number of threads in the thread group
ON_SAMPLE_ERROR
public static final String ON_SAMPLE_ERROR
Action to be taken when a Sampler error occurs
ON_SAMPLE_ERROR_CONTINUE
public static final String ON_SAMPLE_ERROR_CONTINUE
Continue, i.e. ignore sampler errors
ON_SAMPLE_ERROR_STOPTEST
public static final String ON_SAMPLE_ERROR_STOPTEST
Stop test (all threads) if sampler error occurs
ON_SAMPLE_ERROR_STOPTEST_NOW
public static final String ON_SAMPLE_ERROR_STOPTEST_NOW
Stop test NOW (all threads) if sampler error occurs
ON_SAMPLE_ERROR_STOPTHREAD
public static final String ON_SAMPLE_ERROR_STOPTHREAD
Stop current thread if sampler error occurs
RAMP_TIME
public static final String RAMP_TIME
Ramp-up time
SCHEDULER
public static final String SCHEDULER
Whether scheduler is being used
START_TIME
public static final String START_TIME
Scheduler absolute start time
getDelay
public long getDelay()
Get the startup delay
getDuration
public long getDuration()
Get the desired duration of the thread group test run
getEndTime
public long getEndTime()
Get the end time value.
getNumThreads
public int getNumThreads()
Get the number of threads.
getNumberOfThreads
public int getNumberOfThreads()
Get the number of active threads
getOnErrorStopTest
public boolean getOnErrorStopTest()
Check if a sampler error should cause test to stop.
- true if test (all threads) should stop
getOnErrorStopTestNow
public boolean getOnErrorStopTestNow()
Check if a sampler error should cause test to stop now.
- true if test (all threads) should stop immediately
getOnErrorStopThread
public boolean getOnErrorStopThread()
Check if a sampler error should cause thread to stop.
- true if thread should stop
getRampUp
public int getRampUp()
Get the ramp-up value.
getSamplerController
public Controller getSamplerController()
Get the sampler controller.
getScheduler
public boolean getScheduler()
Get whether scheduler is being used
- true if scheduler is being used
getStartTime
public long getStartTime()
Get the absolute start time value.
setDelay
public void setDelay(long delay)
Set the startup delay
setDuration
public void setDuration(long duration)
Set the desired duration of the thread group test run
setEndTime
public void setEndTime(long etime)
Set the EndTime value.
etime
- -
the EndTime value.
setNumThreads
public void setNumThreads(int numThreads)
Set the total number of threads to start
numThreads
- the number of threads.
setRampUp
public void setRampUp(int rampUp)
Set the ramp-up value.
rampUp
- the ramp-up value.
setSamplerController
public void setSamplerController(LoopController c)
Set the sampler controller.
c
- the sampler controller.
setScheduler
public void setScheduler(boolean Scheduler)
Set whether scheduler is being used
Scheduler
- true is scheduler is to be used
setStartTime
public void setStartTime(long stime)
Set the absolute StartTime value.
stime
- -
the StartTime value.