类 Runner
java.lang.Object
com.github.myzhan.locust4j.runtime.Runner
-
字段概要
字段修饰符和类型字段说明protected StringEvery locust4j instance registers a unique nodeID to the master when it makes a connection.protected intNumber of clients required by the master, locust4j use threads to simulate clients.We save user_class_count in spawn message and send it back to master without modification. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidgetReady()getState()protected booleanprotected booleanisMasterHeartbeatTimeout(long timeout) voidquit()protected voidsetHeartbeatStopped(boolean value) voidsetRPCClient(Client client) voidprotected voidsetTaskExecutor(ThreadPoolExecutor taskExecutor) voidsetTasks(List<AbstractTask> tasks) protected voidprotected voidstartSpawning(int spawnCount) protected voidstop()
-
字段详细资料
-
nodeID
Every locust4j instance registers a unique nodeID to the master when it makes a connection. NodeID is kept by Runner. -
numClients
protected int numClientsNumber of clients required by the master, locust4j use threads to simulate clients. -
userClassesCountFromMaster
-
-
构造器详细资料
-
Runner
public Runner()
-
-
方法详细资料
-
isHeartbeatStopped
protected boolean isHeartbeatStopped() -
setHeartbeatStopped
protected void setHeartbeatStopped(boolean value) -
isMasterHeartbeatTimeout
protected boolean isMasterHeartbeatTimeout(long timeout) -
getState
-
getNodeID
-
setRPCClient
-
getRemoteParams
-
setStats
-
setTasks
-
setTaskExecutor
-
startSpawning
protected void startSpawning(int spawnCount) -
spawnComplete
protected void spawnComplete() -
quit
public void quit() -
stop
protected void stop() -
getReady
public void getReady()
-