|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.jmeter.testelement.AbstractTestElement | +--org.apache.jmeter.threads.ThreadGroup
ThreadGroup
Field Summary | |
static String |
END_TIME
|
static String |
MAIN_CONTROLLER
|
static String |
NUM_THREADS
|
static String |
RAMP_TIME
|
static String |
SCHEDULER
|
static String |
START_TIME
|
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement |
log |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
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. |
int |
getDefaultNumThreads()
Get the default number of threads. |
int |
getDefaultRampUp()
Get the default ramp-up value. |
long |
getEndTime()
Get the end time value. |
int |
getNumThreads()
Get the number of threads. |
int |
getRampUp()
Get the ramp-up value. |
Controller |
getSamplerController()
Get the sampler controller. |
boolean |
getScheduler()
Get the Scheduler value. |
long |
getStartTime()
Get the 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. |
Sampler |
next()
Delivers the next Sampler. |
void |
sampleOccurred(SampleEvent e)
A sample has occurred. |
void |
sampleStarted(SampleEvent e)
A sample has started. |
void |
sampleStopped(SampleEvent e)
A sample has stopped. |
void |
setEndTime(long etime)
Set the EndTime value. |
void |
setNumThreads(int numThreads)
Set the nuber of threads. |
void |
setRampUp(int rampUp)
Set the ramp-up value. |
void |
setSamplerController(LoopController c)
Set the sampler controller. |
void |
setScheduler(boolean Scheduler)
Set the Scheduler value. |
void |
setStartTime(long stime)
Set the StartTime value. |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, 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
Constructor Detail |
public ThreadGroup()
Method Detail |
public void setNumThreads(int numThreads)
numThreads
- the number of threads.public boolean isDone()
Controller
isDone
in interface Controller
public Sampler next()
Controller
next
in interface Controller
public void setScheduler(boolean Scheduler)
Scheduler
- the Scheduler value.public boolean getScheduler()
public void setStartTime(long stime)
public long getStartTime()
public void setEndTime(long etime)
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 int getDefaultNumThreads()
public int getDefaultRampUp()
public void addTestElement(TestElement child)
addTestElement
in interface TestElement
addTestElement
in class AbstractTestElement
child
- the test element to add.public void sampleOccurred(SampleEvent e)
sampleOccurred
in interface SampleListener
e
- the sample event.public void sampleStarted(SampleEvent e)
sampleStarted
in interface SampleListener
e
- the sample event.public void sampleStopped(SampleEvent e)
sampleStopped
in interface SampleListener
e
- the sample eventpublic void addIterationListener(LoopIterationListener lis)
Controller
addIterationListener
in interface Controller
public void initialize()
Controller
initialize
in interface Controller
|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |