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:
  • Field Details

  • Constructor Details

    • DistributedRunner

      public DistributedRunner()
    • DistributedRunner

      public DistributedRunner(Properties props)
  • Method Details

    • init

      public void init(List<String> addresses, HashTree tree)
    • 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(List<String> addresses)
    • stop

      public void stop()
      Stop all engines that were previously initiated
    • shutdown

      public void shutdown(List<String> addresses)
    • exit

      public void exit(List<String> addresses)
    • createEngine

      protected JMeterEngine createEngine(String address) throws RemoteException, NotBoundException
      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 contacted
      NotBoundException - when name for address can't be found
    • setStdout

      public void setStdout(PrintStream stdout)
    • setStdErr

      public void setStdErr(PrintStream stdErr)
    • getEngines

      public Collection<? extends JMeterEngine> getEngines()
      Returns:
      Collection of JMeterEngine