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) |
JMeterThread(HashTree test,
JMeterThreadMonitor monitor,
ListenerNotifier note,
Boolean isSameUserOnNextIteration) |
Modifier and Type | Method and Description |
---|---|
protected void |
delayBy(long delay,
String type)
Wait for delay with RAMPUP_GRANULARITY
|
long |
getEndTime()
Get the end time value.
|
ListenerNotifier |
getNotifier() |
long |
getStartTime()
Get the start time value.
|
ListedHashTree |
getTestTree() |
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()
Set running flag to false which will interrupt JMeterThread on next flag test.
|
public static final String PACKAGE_OBJECT
public static final String LAST_SAMPLE_OK
public JMeterThread(HashTree test, JMeterThreadMonitor monitor, ListenerNotifier note)
public JMeterThread(HashTree test, JMeterThreadMonitor monitor, ListenerNotifier note, Boolean isSameUserOnNextIteration)
public void setInitialContext(JMeterContext context)
public void setScheduled(boolean sche)
sche
- flag whether the scheduler should be enabledpublic 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)
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
- the engine which is usedpublic 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)
public ListedHashTree getTestTree()
ListedHashTree
public ListenerNotifier getNotifier()
ListenerNotifier
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.