类 Runner

java.lang.Object
com.github.myzhan.locust4j.runtime.Runner

public class Runner extends Object
A Runner is a state machine that tells to the master, runs all tasks, collects test results and reports to the master.
作者:
myzhan
  • 字段详细资料

    • nodeID

      protected String nodeID
      Every locust4j instance registers a unique nodeID to the master when it makes a connection. NodeID is kept by Runner.
    • numClients

      protected int numClients
      Number of clients required by the master, locust4j use threads to simulate clients.
    • userClassesCountFromMaster

      protected Map<String,Integer> userClassesCountFromMaster
      We save user_class_count in spawn message and send it back to master without modification.
  • 构造器详细资料

    • Runner

      public Runner()
  • 方法详细资料

    • isHeartbeatStopped

      protected boolean isHeartbeatStopped()
    • setHeartbeatStopped

      protected void setHeartbeatStopped(boolean value)
    • isMasterHeartbeatTimeout

      protected boolean isMasterHeartbeatTimeout(long timeout)
    • getState

      public RunnerState getState()
    • getNodeID

      public String getNodeID()
    • setRPCClient

      public void setRPCClient(Client client)
    • getRemoteParams

      public Map<String,Object> getRemoteParams()
    • setStats

      public void setStats(Stats stats)
    • setTasks

      public void setTasks(List<AbstractTask> tasks)
    • setTaskExecutor

      protected void setTaskExecutor(ThreadPoolExecutor taskExecutor)
    • startSpawning

      protected void startSpawning(int spawnCount)
    • spawnComplete

      protected void spawnComplete()
    • quit

      public void quit()
    • stop

      protected void stop()
    • getReady

      public void getReady()