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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JMeterEngine
createEngine
(String address) A factory method that might be overridden for unit testingvoid
Collection<? extends JMeterEngine>
void
void
setStdErr
(PrintStream stdErr) void
setStdout
(PrintStream stdout) void
void
start()
Start all engines that were previously initiatedvoid
Starts a remote testing enginesvoid
stop()
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:
Collection
ofJMeterEngine
-