|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.threads.JMeterContextService
public final class JMeterContextService
Provides context service for JMeter threads. Keeps track of active and total thread counts.
| Nested Class Summary | |
|---|---|
static class |
JMeterContextService.ThreadCounts
|
| Method Summary | |
|---|---|
static void |
addTotalThreads(int thisGroup)
Update the total number of threads |
static void |
clearTotalThreads()
Set total threads to zero; also clears started and finished counts |
static void |
endTest()
Called by MainFrame#testEnded(). |
static JMeterContext |
getContext()
Gives access to the current thread context. |
static int |
getNumberOfThreads()
Get the number of currently active threads |
static long |
getTestStartTime()
|
static JMeterContextService.ThreadCounts |
getThreadCounts()
|
static int |
getTotalThreads()
Get the total number of threads (>= active) |
static void |
replaceContext(JMeterContext context)
Replace Thread Context by the parameter. |
static void |
startTest()
Method is called by the JMeterEngine class when a test run is started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JMeterContext getContext()
public static void replaceContext(JMeterContext context)
HTTPSamplerBase.ASyncSample
context - JMeterContextpublic static void startTest()
public static int getNumberOfThreads()
public static JMeterContextService.ThreadCounts getThreadCounts()
public static void endTest()
public static long getTestStartTime()
public static int getTotalThreads()
public static void addTotalThreads(int thisGroup)
thisGroup - number of threads in this thread grouppublic static void clearTotalThreads()
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||