public class JMeterThread extends Object implements Runnable, Interruptible
Modifier and Type | Field and Description |
---|---|
static String |
LAST_SAMPLE_OK |
static String |
PACKAGE_OBJECT |
Constructor and Description |
---|
JMeterThread(HashTree test,
JMeterThreadMonitor monitor,
ListenerNotifier note) |
Modifier and Type | Method and Description |
---|---|
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) |
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() |
public static final String PACKAGE_OBJECT
public static final String LAST_SAMPLE_OK
public JMeterThread(HashTree test, JMeterThreadMonitor monitor, ListenerNotifier note)
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 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)
public 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)
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.