|
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.threads.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()
|
|
JMeterThread(HashTree test,
JMeterThreadMonitor monitor,
ListenerNotifier note)
|
Method Summary | |
long |
getEndTime()
Get the end time value. |
long |
getStartTime()
Get the start time value. |
String |
getThreadName()
|
int |
getThreadNum()
Returns the threadNum. |
boolean |
isScheduled()
Checks whether the JMeterThread is Scheduled. |
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 |
setOnErrorStopTest(boolean b)
Should Test stop 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 |
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()
public JMeterThread(HashTree test, JMeterThreadMonitor monitor, ListenerNotifier note)
Method Detail |
public void setInitialContext(JMeterContext context)
public boolean isScheduled()
public void setScheduled(boolean sche)
public void setStartTime(long stime)
stime
- the StartTime value.
author T.Elanjchezhiyan(chezhiyan@siptech.co.in)public long getStartTime()
public void setEndTime(long etime)
etime
- the EndTime value.
author T.Elanjchezhiyan(chezhiyan@siptech.co.in)public long getEndTime()
public void setThreadName(String threadName)
public void run()
run
in interface Runnable
public String getThreadName()
public void stop()
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 setOnErrorStopThread(boolean b)
b
- - true or false
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |