类 Stats
java.lang.Object
com.github.myzhan.locust4j.stats.Stats
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclearAll()protected StatsEntrystatic Statsprotected StatsEntrygetTotal()voidvoidlogRequest(String method, String name, long responseTime, long contentLength) voidrun()User code reports successful and failed records to Stats.voidstart()voidstop()voidwakeMeUp()
-
构造器详细资料
-
Stats
public Stats()Probably, you don't need to create Stats unless you are writing unit tests.
-
-
方法详细资料
-
getInstance
-
start
public void start() -
stop
public void stop() -
getReportSuccessQueue
-
getReportFailureQueue
-
getClearStatsQueue
-
getMessageToRunnerQueue
-
wakeMeUp
public void wakeMeUp() -
run
-
getTotal
-
get
-
logRequest
-
logError
-
clearAll
public void clearAll() -
serializeStats
-
serializeErrors
-
collectReportData
-