public class Runner extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
nodeID
Every locust4j instance registers a unique nodeID to the master when it makes a connection.
|
protected int |
numClients
Number of clients required by the master, locust4j use threads to simulate clients.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Runner |
getInstance() |
protected CountDownLatch |
getLatch() |
void |
getReady() |
protected com.github.myzhan.locust4j.State |
getState() |
protected void |
hatchComplete() |
protected void |
quit() |
protected void |
setTasks(List<AbstractTask> tasks) |
protected void |
startHatching(int spawnCount,
int hatchRate) |
protected void |
stop() |
protected String nodeID
protected int numClients
public static Runner getInstance()
protected com.github.myzhan.locust4j.State getState()
protected CountDownLatch getLatch()
protected void setTasks(List<AbstractTask> tasks)
protected void startHatching(int spawnCount,
int hatchRate)
protected void hatchComplete()
protected void quit()
protected void stop()
public void getReady()
Copyright © 2017. All rights reserved.