public final class JMeterContextService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JMeterContextService.ThreadCounts |
Modifier and Type | Method and Description |
---|---|
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 JMeterVariables |
getClientSideVariables()
Get all variables accessible for JMeter client in a distributed test
(only test plan and user defined variables)
Note this is a read-only collection
|
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 |
initClientSideVariables(JMeterVariables clientSideVariables)
Set variables for JMeter client in a distributed test (INTERNAL API)
|
static void |
replaceContext(JMeterContext context)
Replace Thread Context by the parameter.
|
static void |
resetClientSideVariables()
Reset client side variables in a distributed mode
|
static void |
startTest()
Method is called by the JMeterEngine class when a test run is started.
|
public static JMeterContext getContext()
public static void replaceContext(JMeterContext context)
context
- JMeterContext
public 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()
public static JMeterVariables getClientSideVariables()
JMeterVariables
available for JMeter clientpublic static void initClientSideVariables(JMeterVariables clientSideVariables)
clientSideVariables
- JMeterVariables
public static void resetClientSideVariables()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.