Package org.apache.jmeter.engine
Class StandardJMeterEngine
java.lang.Object
org.apache.jmeter.engine.StandardJMeterEngine
- All Implemented Interfaces:
- Runnable,- JMeterEngine
Runs JMeter tests, either directly for local GUI and non-GUI invocations,
 or started by 
RemoteJMeterEngineImpl when running in server mode.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidClean shutdown ie, wait for end of current running samplersvoidawaitTermination(Duration duration) voidConfigure enginevoidexit()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 calledbooleanisActive()static voidvoidreset()Stop test if runningvoidrun()voidrunTest()Runs the testvoidset Properties on enginestatic voidstatic voidvoidstopTest()Stop Test NowvoidstopTest(boolean now) static booleanstopThread(String threadName) static booleanstopThreadNow(String threadName) 
- 
Constructor Details- 
StandardJMeterEnginepublic StandardJMeterEngine()
- 
StandardJMeterEngine
 
- 
- 
Method Details- 
stopEngineNowpublic static void stopEngineNow()
- 
stopEnginepublic static void stopEngine()
- 
register
- 
stopThread
- 
stopThreadNow
- 
configureDescription copied from interface:JMeterEngineConfigure engine- Specified by:
- configurein interface- JMeterEngine
- Parameters:
- testTree- the test plan
 
- 
runTestDescription copied from interface:JMeterEngineRuns the test- Specified by:
- runTestin interface- JMeterEngine
- Throws:
- JMeterEngineException- if an error occurs
 
- 
awaitTermination@API(status=EXPERIMENTAL, since="5.6") public void awaitTermination(Duration duration) throws ExecutionException, InterruptedException, TimeoutException 
- 
resetpublic void reset()Description copied from interface:JMeterEngineStop test if running- Specified by:
- resetin interface- JMeterEngine
 
- 
stopTestpublic void stopTest()Stop Test Now- Specified by:
- stopTestin interface- JMeterEngine
 
- 
stopTestpublic void stopTest(boolean now) - Specified by:
- stopTestin interface- JMeterEngine
- Parameters:
- now- boolean that tell whether stop is immediate (interrupt) or not (wait for current sample end)
 
- 
runpublic void run()
- 
askThreadsToStoppublic void askThreadsToStop()Clean shutdown ie, wait for end of current running samplers
- 
exitpublic 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- Specified by:
- exitin interface- JMeterEngine
 
- 
setPropertiesDescription copied from interface:JMeterEngineset Properties on engine- Specified by:
- setPropertiesin interface- JMeterEngine
- Parameters:
- p- the properties to set
 
- 
isActivepublic boolean isActive()- Specified by:
- isActivein interface- JMeterEngine
- Returns:
- boolean Flag to show whether engine is active (true when test is running). Set to false at end of test
 
 
-