Package org.apache.jmeter.engine
Class DistributedRunner
java.lang.Object
org.apache.jmeter.engine.DistributedRunner
This class serves all responsibility of starting and stopping distributed tests.
It was refactored from JMeter and RemoteStart classes to unify retry behavior.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JMeterEnginecreateEngine(String address) A factory method that might be overridden for unit testingvoidCollection<? extends JMeterEngine>voidvoidsetStdErr(PrintStream stdErr) voidsetStdout(PrintStream stdout) voidvoidstart()Start all engines that were previously initiatedvoidStarts a remote testing enginesvoidstop()Stop all engines that were previously initiatedvoid
-
Field Details
-
RETRIES_NUMBER
- See Also:
-
RETRIES_DELAY
- See Also:
-
CONTINUE_ON_FAIL
- See Also:
-
-
Constructor Details
-
DistributedRunner
public DistributedRunner() -
DistributedRunner
-
-
Method Details
-
init
-
start
Starts a remote testing engines- Parameters:
addresses- list of the DNS names or IP addresses of the remote testing engines
-
start
public void start()Start all engines that were previously initiated -
stop
-
stop
public void stop()Stop all engines that were previously initiated -
shutdown
-
exit
-
createEngine
A factory method that might be overridden for unit testing- Parameters:
address- address for engine- Returns:
- engine instance
- Throws:
RemoteException- if registry can't be contactedNotBoundException- when name for address can't be found
-
setStdout
-
setStdErr
-
getEngines
- Returns:
CollectionofJMeterEngine
-