Apache JMeter
1.9

org.apache.jmeter.threads
Class JMeterThread

java.lang.Object
  |
  +--org.apache.jmeter.threads.JMeterThread
All Implemented Interfaces:
Runnable, Serializable

public class JMeterThread
extends Object
implements Runnable, Serializable

The JMeter interface to the sampling process, allowing JMeter to see the timing, add listeners for sampling events and to stop the sampling process.

Version:
$Revision: 1.33 $
Author:
$Author: mstover1 $
See Also:
Serialized Form

Constructor Summary
JMeterThread()
           
JMeterThread(org.apache.jorphan.collections.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 setInitialContext(JMeterContext context)
           
 void setInitialDelay(int delay)
           
 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 startScheduler()
          Start the scheduler with the specified time aAuthor T.Elanjchezhiyan(chezhiyan@siptech.co.in)
 void stop()
           
 void stopScheduler()
          Check the scheduled time is completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMeterThread

public JMeterThread()

JMeterThread

public JMeterThread(org.apache.jorphan.collections.HashTree test,
                    JMeterThreadMonitor monitor,
                    ListenerNotifier note)
Method Detail

setInitialContext

public void setInitialContext(JMeterContext context)

isScheduled

public boolean isScheduled()
Checks whether the JMeterThread is Scheduled.


setScheduled

public void setScheduled(boolean sche)
Enable the scheduler for this JMeterThread.


setStartTime

public void setStartTime(long stime)
Set the StartTime for this Thread.


getStartTime

public long getStartTime()
Get the start time value.

Returns:
the start time value.

setEndTime

public void setEndTime(long etime)
Set the EndTime for this Thread.


getEndTime

public long getEndTime()
Get the end time value.

Returns:
the end time value.

stopScheduler

public void stopScheduler()
Check the scheduled time is completed.


startScheduler

public void startScheduler()
Start the scheduler with the specified time aAuthor T.Elanjchezhiyan(chezhiyan@siptech.co.in)


setThreadName

public void setThreadName(String threadName)

run

public void run()
Specified by:
run in interface Runnable

getThreadName

public String getThreadName()

stop

public void stop()

setInitialDelay

public void setInitialDelay(int delay)

getThreadNum

public int getThreadNum()
Returns the threadNum.


setThreadNum

public void setThreadNum(int threadNum)
Sets the threadNum.

Parameters:
threadNum - the threadNum to set

Apache JMeter
1.9

Copyright © 1998-2003 Apache Software Foundation. All Rights Reserved.