org.apache.jmeter.threads
Class JMeterContextService
public final class JMeterContextService
Provides context service for JMeter threads.
Keeps track of active and total thread counts.
addTotalThreads
public static void addTotalThreads(int thisGroup)
Update the total number of threads
thisGroup
- number of threads in this thread group
clearTotalThreads
public static void clearTotalThreads()
Set total threads to zero
endTest
public static void endTest()
Called by MainFrame#testEnded().
Clears start time field.
getContext
public static JMeterContext getContext()
Gives access to the current thread context.
- the current thread Context
getNumberOfThreads
public static int getNumberOfThreads()
Get the number of currently active threads
getTestStartTime
public static long getTestStartTime()
getTotalThreads
public static int getTotalThreads()
Get the total number of threads (>= active)
startTest
public static void startTest()
Method is called by the JMeterEngine class when a test run is started.
Zeroes numberOfActiveThreads.
Saves current time in a field and in the JMeter property "TESTSTART.MS"
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.