Package org.apache.jmeter.engine
Class StandardJMeterEngine
-
- All Implemented Interfaces:
-
java.lang.Runnable
,org.apache.jmeter.engine.JMeterEngine
public class StandardJMeterEngine implements JMeterEngine, Runnable
Runs JMeter tests, either directly for local GUI and non-GUI invocations, or started by RemoteJMeterEngineImpl when running in server mode.
-
-
Constructor Summary
Constructors Constructor Description StandardJMeterEngine()
StandardJMeterEngine(String host)
-
Method Summary
Modifier and Type Method Description static void
stopEngineNow()
static void
stopEngine()
static void
register(TestStateListener tl)
static boolean
stopThread(String threadName)
static boolean
stopThreadNow(String threadName)
void
configure(HashTree testTree)
Configure engine void
runTest()
Runs the test void
awaitTermination(Duration duration)
void
reset()
Stop test if running synchronized void
stopTest()
Stop Test Now synchronized void
stopTest(boolean now)
void
run()
void
askThreadsToStop()
Clean shutdown ie, wait for end of current running samplers void
exit()
Remote exit Called by RemoteJMeterEngineImpl. void
setProperties(Properties p)
set Properties on engine boolean
isActive()
-
-
Constructor Detail
-
StandardJMeterEngine
StandardJMeterEngine()
-
StandardJMeterEngine
StandardJMeterEngine(String host)
-
-
Method Detail
-
stopEngineNow
static void stopEngineNow()
-
stopEngine
static void stopEngine()
-
register
static void register(TestStateListener tl)
-
stopThread
static boolean stopThread(String threadName)
-
stopThreadNow
static boolean stopThreadNow(String threadName)
-
configure
void configure(HashTree testTree)
Configure engine
-
runTest
void runTest()
Runs the test
-
awaitTermination
@API(status = API.Status.EXPERIMENTAL, since = "5.6") void awaitTermination(Duration duration)
-
reset
void reset()
Stop test if running
-
stopTest
synchronized void stopTest()
Stop Test Now
-
stopTest
synchronized void stopTest(boolean now)
- Parameters:
now
- boolean that tell whether stop is immediate (interrupt) or not (wait for current sample end)
-
run
void run()
-
askThreadsToStop
void askThreadsToStop()
Clean shutdown ie, wait for end of current running samplers
-
exit
void exit()
Remote exit Called by RemoteJMeterEngineImpl.rexit() and by notifyTestListenersOfEnd() iff exitAfterTest is true; in turn that is called by the run() method and the StopTest class also called
-
setProperties
void setProperties(Properties p)
set Properties on engine
- Parameters:
p
- the properties to set
-
isActive
boolean isActive()
- Returns:
boolean Flag to show whether engine is active (true when test is running). Set to false at end of test
-
-
-
-