Package org.apache.jmeter.engine
Class DistributedRunner
- java.lang.Object
-
- org.apache.jmeter.engine.DistributedRunner
-
public class DistributedRunner extends Object
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:
JMeter,RemoteStart
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTINUE_ON_FAILstatic StringRETRIES_DELAYstatic StringRETRIES_NUMBER
-
Constructor Summary
Constructors Constructor Description DistributedRunner()DistributedRunner(Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JMeterEnginecreateEngine(String address)A factory method that might be overridden for unit testingvoidexit(List<String> addresses)voidinit(List<String> addresses, HashTree tree)voidsetStdErr(PrintStream stdErr)voidsetStdout(PrintStream stdout)voidshutdown(List<String> addresses)voidstart()Start all engines that were previously initiatedvoidstart(List<String> addresses)Starts a remote testing enginesvoidstop()Stop all engines that were previously initiatedvoidstop(List<String> addresses)
-
-
-
Field Detail
-
RETRIES_NUMBER
public static final String RETRIES_NUMBER
- See Also:
- Constant Field Values
-
RETRIES_DELAY
public static final String RETRIES_DELAY
- See Also:
- Constant Field Values
-
CONTINUE_ON_FAIL
public static final String CONTINUE_ON_FAIL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DistributedRunner
public DistributedRunner()
-
DistributedRunner
public DistributedRunner(Properties props)
-
-
Method Detail
-
start
public void start(List<String> addresses)
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
public void stop()
Stop all engines that were previously initiated
-
createEngine
protected JMeterEngine createEngine(String address) throws RemoteException, NotBoundException, MalformedURLException
A factory method that might be overridden for unit testing- Parameters:
address- address for engine- Returns:
- engine instance
- Throws:
RemoteExceptionNotBoundExceptionMalformedURLException
-
setStdout
public void setStdout(PrintStream stdout)
-
setStdErr
public void setStdErr(PrintStream stdErr)
-
-