Package org.apache.jmeter.engine
Class ClientJMeterEngine
java.lang.Object
org.apache.jmeter.engine.ClientJMeterEngine
- All Implemented Interfaces:
JMeterEngine
Class to run remote tests from the client JMeter and collect remote samples
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure enginevoidexit()Exit enginegetHost()booleanisActive()voidreset()Stop test if runningvoidrunTest()Runs the testvoidset Properties on enginevoidstopTest(boolean now) static voidtidyRMI(org.slf4j.Logger logger) Tidy up RMI access to allow JMeter client to exit.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jmeter.engine.JMeterEngine
stopTest
-
Constructor Details
-
ClientJMeterEngine
- Throws:
NotBoundExceptionRemoteException
-
-
Method Details
-
configure
Configure engine- Specified by:
configurein interfaceJMeterEngine- Parameters:
testTree- the test plan
-
stopTest
public void stopTest(boolean now) - Specified by:
stopTestin interfaceJMeterEngine- Parameters:
now- boolean that tell whether stop is immediate (interrupt) or not (wait for current sample end)
-
reset
public void reset()Stop test if running- Specified by:
resetin interfaceJMeterEngine
-
runTest
Description copied from interface:JMeterEngineRuns the test- Specified by:
runTestin interfaceJMeterEngine- Throws:
JMeterEngineException- if an error occurs
-
tidyRMI
public static void tidyRMI(org.slf4j.Logger logger) Tidy up RMI access to allow JMeter client to exit. Currently just interrupts the "RMI Reaper" thread.- Parameters:
logger- where to log the information
-
exit
public void exit()Exit engine- Specified by:
exitin interfaceJMeterEngine
-
setProperties
set Properties on engine- Specified by:
setPropertiesin interfaceJMeterEngine- Parameters:
p- the properties to set
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceJMeterEngine- Returns:
- boolean Flag to show whether engine is active (true when test is running). Set to false at end of test
-
getHost
- Returns:
- host or host:port
-
toString
-