|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.threads.JMeterThread
public class JMeterThread
The JMeter interface to the sampling process, allowing JMeter to see the timing, add listeners for sampling events and to stop the sampling process.
Field Summary | |
---|---|
static String |
LAST_SAMPLE_OK
|
static String |
PACKAGE_OBJECT
|
Constructor Summary | |
---|---|
JMeterThread(HashTree test,
JMeterThreadMonitor monitor,
ListenerNotifier note)
|
Method Summary | |
---|---|
protected void |
delayBy(long delay,
String type)
Wait for delay with RAMPUP_GRANULARITY |
long |
getEndTime()
Get the end time value. |
long |
getStartTime()
Get the start time value. |
String |
getThreadName()
|
int |
getThreadNum()
Returns the threadNum. |
boolean |
interrupt()
Interrupt the current operation if possible. |
void |
run()
|
void |
setEndTime(long etime)
Set the EndTime for this Thread. |
void |
setEngine(StandardJMeterEngine engine)
Save the engine instance for access to the stop methods |
void |
setInitialContext(JMeterContext context)
|
void |
setInitialDelay(int delay)
Set rampup delay for JMeterThread Thread |
void |
setOnErrorStartNextLoop(boolean b)
Should Thread start next loop on Sampler error? |
void |
setOnErrorStopTest(boolean b)
Should Test stop on sampler error? |
void |
setOnErrorStopTestNow(boolean b)
Should Test stop abruptly on sampler error? |
void |
setOnErrorStopThread(boolean b)
Should Thread stop on Sampler error? |
void |
setScheduled(boolean sche)
Enable the scheduler for this JMeterThread. |
void |
setStartTime(long stime)
Set the StartTime for this Thread. |
void |
setThreadGroup(AbstractThreadGroup group)
|
void |
setThreadName(String threadName)
|
void |
setThreadNum(int threadNum)
Sets the threadNum. |
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PACKAGE_OBJECT
public static final String LAST_SAMPLE_OK
Constructor Detail |
---|
public JMeterThread(HashTree test, JMeterThreadMonitor monitor, ListenerNotifier note)
Method Detail |
---|
public void setInitialContext(JMeterContext context)
public void setScheduled(boolean sche)
public void setStartTime(long stime)
stime
- the StartTime value.public long getStartTime()
public void setEndTime(long etime)
etime
- the EndTime value.public long getEndTime()
public void setThreadName(String threadName)
public void run()
run
in interface Runnable
public String getThreadName()
public void stop()
public boolean interrupt()
interrupt
in interface Interruptible
true
if there was an operation to interrupt.public void setInitialDelay(int delay)
delay
- Rampup delay for JMeterThreadprotected final void delayBy(long delay, String type)
delay
- delay in mstype
- Delay typepublic int getThreadNum()
public void setThreadNum(int threadNum)
threadNum
- the threadNum to setpublic void setEngine(StandardJMeterEngine engine)
engine
- public void setOnErrorStopTest(boolean b)
b
- -
true or falsepublic void setOnErrorStopTestNow(boolean b)
b
- -
true or falsepublic void setOnErrorStopThread(boolean b)
b
- -
true or falsepublic void setOnErrorStartNextLoop(boolean b)
b
- -
true or falsepublic void setThreadGroup(AbstractThreadGroup group)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |