|
Apache JMeter 2.0.1.20050615 |
|||||||||
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
Field Summary | |
static String |
DELAY
|
static String |
DURATION
|
static String |
END_TIME
|
static String |
MAIN_CONTROLLER
|
static String |
NUM_THREADS
|
static String |
ON_SAMPLE_ERROR
|
static String |
ON_SAMPLE_ERROR_CONTINUE
|
static String |
ON_SAMPLE_ERROR_STOPTEST
|
static String |
ON_SAMPLE_ERROR_STOPTHREAD
|
static String |
RAMP_TIME
|
static String |
SCHEDULER
|
static String |
START_TIME
|
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 |
getDelay()
Get the delay |
long |
getDuration()
Get the duration |
long |
getEndTime()
Get the end time value. |
int |
getNumThreads()
Get the number of threads. |
boolean |
getOnErrorStopTest()
Check if a sampler error should cause test to stop. |
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 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 |
setDelay(long delay)
Set the delay |
void |
setDuration(long duration)
Set the duration |
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, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, 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 |
canRemove, clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, 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
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)
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 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
public boolean getOnErrorStopThread()
public boolean getOnErrorStopTest()
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |