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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure enginevoid
exit()
Exit enginegetHost()
boolean
isActive()
void
reset()
Stop test if runningvoid
runTest()
Runs the testvoid
set Properties on enginevoid
stopTest
(boolean now) static void
tidyRMI
(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, wait
Methods inherited from interface org.apache.jmeter.engine.JMeterEngine
stopTest
-
Constructor Details
-
ClientJMeterEngine
- Throws:
NotBoundException
RemoteException
-
-
Method Details
-
configure
Configure engine- Specified by:
configure
in interfaceJMeterEngine
- Parameters:
testTree
- the test plan
-
stopTest
public void stopTest(boolean now) - Specified by:
stopTest
in 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:
reset
in interfaceJMeterEngine
-
runTest
Description copied from interface:JMeterEngine
Runs the test- Specified by:
runTest
in 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:
exit
in interfaceJMeterEngine
-
setProperties
set Properties on engine- Specified by:
setProperties
in interfaceJMeterEngine
- Parameters:
p
- the properties to set
-
isActive
public boolean isActive()- Specified by:
isActive
in 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
-