索引

A C D E G I L M N O Q R S T U V W Z 
所有程序包|所有类和接口

A

AbstractRateLimiter - com.github.myzhan.locust4j.ratelimit中的类
 
AbstractRateLimiter() - 类的构造器 com.github.myzhan.locust4j.ratelimit.AbstractRateLimiter
 
AbstractTask - com.github.myzhan.locust4j中的类
An AbstractTask is the abstraction layer of test scenario, which requires subtypes to implement test scenario in AbstractTask.execute() method.
AbstractTask() - 类的构造器 com.github.myzhan.locust4j.AbstractTask
 
AbstractTaskFactory - com.github.myzhan.locust4j.taskfactory中的类
 
AbstractTaskFactory() - 类的构造器 com.github.myzhan.locust4j.taskfactory.AbstractTaskFactory
 
AbstractTaskSet - com.github.myzhan.locust4j.taskset中的类
 
AbstractTaskSet() - 类的构造器 com.github.myzhan.locust4j.taskset.AbstractTaskSet
 
acquire() - 类中的方法 com.github.myzhan.locust4j.ratelimit.AbstractRateLimiter
Acquire a permit from rate limiter.
acquire() - 类中的方法 com.github.myzhan.locust4j.ratelimit.RampUpRateLimiter
 
acquire() - 类中的方法 com.github.myzhan.locust4j.ratelimit.StableRateLimiter
 
add(Long) - 类中的方法 com.github.myzhan.locust4j.message.LongIntMap
 
addTask(AbstractTask) - 类中的方法 com.github.myzhan.locust4j.taskset.AbstractTaskSet
Add a task to the task set.
addTask(AbstractTask) - 类中的方法 com.github.myzhan.locust4j.taskset.WeighingTaskSet
 

C

clearAll() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
Client - com.github.myzhan.locust4j.rpc中的接口
RPC Client interface.
close() - 接口中的方法 com.github.myzhan.locust4j.rpc.Client
close client
close() - 类中的方法 com.github.myzhan.locust4j.rpc.ZeromqClient
 
collectReportData() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
com.github.myzhan.locust4j - 程序包 com.github.myzhan.locust4j
 
com.github.myzhan.locust4j.message - 程序包 com.github.myzhan.locust4j.message
 
com.github.myzhan.locust4j.ratelimit - 程序包 com.github.myzhan.locust4j.ratelimit
 
com.github.myzhan.locust4j.rpc - 程序包 com.github.myzhan.locust4j.rpc
 
com.github.myzhan.locust4j.runtime - 程序包 com.github.myzhan.locust4j.runtime
 
com.github.myzhan.locust4j.stats - 程序包 com.github.myzhan.locust4j.stats
 
com.github.myzhan.locust4j.taskfactory - 程序包 com.github.myzhan.locust4j.taskfactory
 
com.github.myzhan.locust4j.taskset - 程序包 com.github.myzhan.locust4j.taskset
 
com.github.myzhan.locust4j.utils - 程序包 com.github.myzhan.locust4j.utils
 
createTask() - 类中的方法 com.github.myzhan.locust4j.taskfactory.AbstractTaskFactory
Create a task instance.
currentTimeInSeconds() - 类中的静态方法 com.github.myzhan.locust4j.utils.Utils
Get the current timestamp in seconds.

D

dryRun(AbstractTask...) - 类中的方法 com.github.myzhan.locust4j.Locust
Run tasks without connecting to master.
dryRun(List<AbstractTask>) - 类中的方法 com.github.myzhan.locust4j.Locust
Run tasks without connecting to master.

E

error - 类中的变量 com.github.myzhan.locust4j.stats.StatsError
 
execute() - 类中的方法 com.github.myzhan.locust4j.AbstractTask
Test scenarios should be implemented in this method, like sending http request.
execute() - 类中的方法 com.github.myzhan.locust4j.taskfactory.ThreadLocalTaskFactory
 
execute() - 类中的方法 com.github.myzhan.locust4j.taskset.WeighingTaskSet
 

G

get(Long) - 类中的方法 com.github.myzhan.locust4j.message.LongIntMap
 
get(String, String) - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
getBytes() - 类中的方法 com.github.myzhan.locust4j.message.Message
 
getClearStatsQueue() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
getContentLength() - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
getData() - 类中的方法 com.github.myzhan.locust4j.message.Message
 
getError() - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
getHostname() - 类中的静态方法 com.github.myzhan.locust4j.utils.Utils
 
getInstance() - 类中的静态方法 com.github.myzhan.locust4j.Locust
Get the locust singleton.
getInstance() - 类中的静态方法 com.github.myzhan.locust4j.stats.Stats
 
getLastRequestTimestamp() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getMaxResponseTime() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getMessageToRunnerQueue() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
getMethod() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getMinResponseTime() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getName() - 类中的方法 com.github.myzhan.locust4j.AbstractTask
Get the name of task.
getName() - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
getName() - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
getName() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getName() - 类中的方法 com.github.myzhan.locust4j.taskset.WeighingTaskSet
 
getNodeID() - 类中的方法 com.github.myzhan.locust4j.message.Message
 
getNodeID() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
getNodeID() - 类中的静态方法 com.github.myzhan.locust4j.utils.Utils
 
getNumFailures() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getNumReqsPerSec() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getNumRequests() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getRateLimiter() - 类中的方法 com.github.myzhan.locust4j.Locust
Get the rate limiter
getReady() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
getRemoteParam(String) - 类中的方法 com.github.myzhan.locust4j.Locust
Get remote params sent by the master, which will be set before spawning begins.
getRemoteParams() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
getReportFailureQueue() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
getReportSuccessQueue() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
getRequestType() - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
getRequestType() - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
getResponseTime() - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
getResponseTime() - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
getResponseTimes() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getRunner() - 类中的方法 com.github.myzhan.locust4j.Locust
 
getStartTime() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getState() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
getStrippedReport() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getSystemEnvWithDefault(String, String) - 类中的静态方法 com.github.myzhan.locust4j.utils.Utils
Get environment variable by key, and return the default value if not found.
getTask(int) - 类中的方法 com.github.myzhan.locust4j.taskset.WeighingTaskSet
 
getTotal() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
getTotalContentLength() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getTotalResponseTime() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
getType() - 类中的方法 com.github.myzhan.locust4j.message.Message
 
getWeight() - 类中的方法 com.github.myzhan.locust4j.AbstractTask
When locust runs multiple tasks, their weights are used to allocate threads.
getWeight() - 类中的方法 com.github.myzhan.locust4j.taskset.WeighingTaskSet
 

I

internalStore - 类中的变量 com.github.myzhan.locust4j.message.LongIntMap
 
isHeartbeatStopped() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
isMasterHeartbeatTimeout(long) - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
isRateLimitEnabled() - 类中的方法 com.github.myzhan.locust4j.Locust
Return rateLimitEnabled
isStopped() - 类中的方法 com.github.myzhan.locust4j.ratelimit.AbstractRateLimiter
Is rate limiter stopped.
isStopped() - 类中的方法 com.github.myzhan.locust4j.ratelimit.RampUpRateLimiter
 
isStopped() - 类中的方法 com.github.myzhan.locust4j.ratelimit.StableRateLimiter
 
isVerbose() - 类中的方法 com.github.myzhan.locust4j.Locust
已过时。
Since 1.0.8, we use slf4j as a logging facade without a particular logging framework.

L

Locust - com.github.myzhan.locust4j中的类
Locust class exposes all the APIs of locust4j.
log(long, long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
logError(String) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
logError(String, String, String) - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
logRequest(String, String, long, long) - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
logResponseTime(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
logTimeOfRequest() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
LongIntMap - com.github.myzhan.locust4j.message中的类
 
LongIntMap() - 类的构造器 com.github.myzhan.locust4j.message.LongIntMap
 

M

md5(String...) - 类中的静态方法 com.github.myzhan.locust4j.utils.Utils
 
Message - com.github.myzhan.locust4j.message中的类
 
Message(byte[]) - 类的构造器 com.github.myzhan.locust4j.message.Message
 
Message(String, Map<String, Object>, int, String) - 类的构造器 com.github.myzhan.locust4j.message.Message
 
method - 类中的变量 com.github.myzhan.locust4j.stats.StatsError
 

N

name - 类中的变量 com.github.myzhan.locust4j.stats.StatsError
 
nodeID - 类中的变量 com.github.myzhan.locust4j.runtime.Runner
Every locust4j instance registers a unique nodeID to the master when it makes a connection.
now() - 类中的静态方法 com.github.myzhan.locust4j.utils.Utils
Get the current timestamp in millis.
numClients - 类中的变量 com.github.myzhan.locust4j.runtime.Runner
Number of clients required by the master, locust4j use threads to simulate clients.

O

occured() - 类中的方法 com.github.myzhan.locust4j.stats.StatsError
 
occurrences - 类中的变量 com.github.myzhan.locust4j.stats.StatsError
 
onStart() - 类中的方法 com.github.myzhan.locust4j.AbstractTask
This method will be executed once before the test loop.
onStart() - 类中的方法 com.github.myzhan.locust4j.taskfactory.ThreadLocalTaskFactory
 
onStop() - 类中的方法 com.github.myzhan.locust4j.AbstractTask
This method will be executed once after the test loop stopped, whether it ends in failure or not.
onStop() - 类中的方法 com.github.myzhan.locust4j.taskfactory.ThreadLocalTaskFactory
 

Q

quit() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 

R

RampUpRateLimiter - com.github.myzhan.locust4j.ratelimit中的类
A RampUpRateLimiter distributes permits at a ramp-up rate, in steps.
RampUpRateLimiter(long, long, long, TimeUnit, long, TimeUnit) - 类的构造器 com.github.myzhan.locust4j.ratelimit.RampUpRateLimiter
Creates a RampUpRateLimiter
Ready - 枚举类 中的枚举常量 com.github.myzhan.locust4j.runtime.RunnerState
Runner is ready to receive message from master.
recordFailure(String, String, long, String) - 类中的方法 com.github.myzhan.locust4j.Locust
Add a failed record, locust4j will collect it, and report to master.
recordSuccess(String, String, long, long) - 类中的方法 com.github.myzhan.locust4j.Locust
Add a successful record, locust4j will collect it, calculate things like RPS, and report to master.
recv() - 接口中的方法 com.github.myzhan.locust4j.rpc.Client
receive message from master
recv() - 类中的方法 com.github.myzhan.locust4j.rpc.ZeromqClient
 
RequestFailure - com.github.myzhan.locust4j.stats中的类
 
RequestFailure() - 类的构造器 com.github.myzhan.locust4j.stats.RequestFailure
 
RequestSuccess - com.github.myzhan.locust4j.stats中的类
 
RequestSuccess() - 类的构造器 com.github.myzhan.locust4j.stats.RequestSuccess
 
reset() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
round(long, int) - 类中的静态方法 com.github.myzhan.locust4j.utils.Utils
 
run() - 类中的方法 com.github.myzhan.locust4j.AbstractTask
 
run() - 类中的方法 com.github.myzhan.locust4j.ratelimit.StableRateLimiter
 
run() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
User code reports successful and failed records to Stats.
run(AbstractTask...) - 类中的方法 com.github.myzhan.locust4j.Locust
Add tasks to Runner, connect to master and wait for messages of master.
run(List<AbstractTask>) - 类中的方法 com.github.myzhan.locust4j.Locust
Add tasks to Runner, connect to master and wait for messages of master.
Runner - com.github.myzhan.locust4j.runtime中的类
A Runner is a state machine that tells to the master, runs all tasks, collects test results and reports to the master.
Runner() - 类的构造器 com.github.myzhan.locust4j.runtime.Runner
 
RunnerState - com.github.myzhan.locust4j.runtime中的枚举类
State of runner
Running - 枚举类 中的枚举常量 com.github.myzhan.locust4j.runtime.RunnerState
Runner is done with submitting tasks.

S

send(Message) - 接口中的方法 com.github.myzhan.locust4j.rpc.Client
send message to master
send(Message) - 类中的方法 com.github.myzhan.locust4j.rpc.ZeromqClient
 
serialize() - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
serializeErrors() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
serializeStats() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
setContentLength(long) - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
setError(String) - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
setHeartbeatStopped(boolean) - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
setLastRequestTimestamp(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setMasterHost(String) - 类中的方法 com.github.myzhan.locust4j.Locust
Set the master host.
setMasterPort(int) - 类中的方法 com.github.myzhan.locust4j.Locust
Set the master port.
setMaxResponseTime(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setMaxRPS(long) - 类中的方法 com.github.myzhan.locust4j.Locust
Limit max PRS that locust4j can generator.
setMethod(String) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setMinResponseTime(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setName(String) - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
setName(String) - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
setName(String) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setNumFailures(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setNumReqsPerSec(LongIntMap) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setNumRequests(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setRateLimiter(AbstractRateLimiter) - 类中的方法 com.github.myzhan.locust4j.Locust
Set the rate limiter
setRequestType(String) - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
setRequestType(String) - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
setResponseTime(long) - 类中的方法 com.github.myzhan.locust4j.stats.RequestFailure
 
setResponseTime(long) - 类中的方法 com.github.myzhan.locust4j.stats.RequestSuccess
 
setResponseTimes(LongIntMap) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setRPCClient(Client) - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
setRunner(Runner) - 类中的方法 com.github.myzhan.locust4j.Locust
 
setStartTime(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setStats(Stats) - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
setTaskExecutor(ThreadPoolExecutor) - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
setTasks(List<AbstractTask>) - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
setTotalContentLength(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setTotalResponseTime(long) - 类中的方法 com.github.myzhan.locust4j.stats.StatsEntry
 
setVerbose(boolean) - 类中的方法 com.github.myzhan.locust4j.Locust
已过时。
Since 1.0.8, we use slf4j as a logging facade without a particular logging framework.
spawnComplete() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
Spawning - 枚举类 中的枚举常量 com.github.myzhan.locust4j.runtime.RunnerState
Runner is submitting tasks to its thread pool.
StableRateLimiter - com.github.myzhan.locust4j.ratelimit中的类
A StableRateLimiter distributes permits at a configurable rate.
StableRateLimiter(long) - 类的构造器 com.github.myzhan.locust4j.ratelimit.StableRateLimiter
 
StableRateLimiter(long, long, TimeUnit) - 类的构造器 com.github.myzhan.locust4j.ratelimit.StableRateLimiter
 
start() - 类中的方法 com.github.myzhan.locust4j.ratelimit.AbstractRateLimiter
rate limiter only works after started.
start() - 类中的方法 com.github.myzhan.locust4j.ratelimit.RampUpRateLimiter
 
start() - 类中的方法 com.github.myzhan.locust4j.ratelimit.StableRateLimiter
 
start() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
startSpawning(int) - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
Stats - com.github.myzhan.locust4j.stats中的类
Stats collects test results from reportSuccessQueue and reportFailureQueue and reports to Runner every 3 seconds.
Stats() - 类的构造器 com.github.myzhan.locust4j.stats.Stats
Probably, you don't need to create Stats unless you are writing unit tests.
StatsEntry - com.github.myzhan.locust4j.stats中的类
 
StatsEntry(String) - 类的构造器 com.github.myzhan.locust4j.stats.StatsEntry
 
StatsEntry(String, String) - 类的构造器 com.github.myzhan.locust4j.stats.StatsEntry
 
StatsError - com.github.myzhan.locust4j.stats中的类
 
StatsError(String, String, String) - 类的构造器 com.github.myzhan.locust4j.stats.StatsError
 
stop() - 类中的方法 com.github.myzhan.locust4j.Locust
Stop locust
stop() - 类中的方法 com.github.myzhan.locust4j.ratelimit.AbstractRateLimiter
Stop the rate limiter.
stop() - 类中的方法 com.github.myzhan.locust4j.ratelimit.RampUpRateLimiter
 
stop() - 类中的方法 com.github.myzhan.locust4j.ratelimit.StableRateLimiter
 
stop() - 类中的方法 com.github.myzhan.locust4j.runtime.Runner
 
stop() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
Stopped - 枚举类 中的枚举常量 com.github.myzhan.locust4j.runtime.RunnerState
Runner is stopped, its thread pool is destroyed, the test is stopped.

T

tasks - 类中的变量 com.github.myzhan.locust4j.taskset.AbstractTaskSet
 
ThreadLocalTaskFactory - com.github.myzhan.locust4j.taskfactory中的类
 
ThreadLocalTaskFactory() - 类的构造器 com.github.myzhan.locust4j.taskfactory.ThreadLocalTaskFactory
 
toMap() - 类中的方法 com.github.myzhan.locust4j.stats.StatsError
 
toString() - 类中的方法 com.github.myzhan.locust4j.message.LongIntMap
 
toString() - 类中的方法 com.github.myzhan.locust4j.message.Message
 

U

unpackMap(MessageUnpacker) - 类中的静态方法 com.github.myzhan.locust4j.message.Message
 
userClassesCountFromMaster - 类中的变量 com.github.myzhan.locust4j.runtime.Runner
We save user_class_count in spawn message and send it back to master without modification.
Utils - com.github.myzhan.locust4j.utils中的类
 
Utils() - 类的构造器 com.github.myzhan.locust4j.utils.Utils
 

V

valueOf(String) - 枚举类中的静态方法 com.github.myzhan.locust4j.runtime.RunnerState
返回带有指定名称的该类的枚举常量。
values() - 枚举类中的静态方法 com.github.myzhan.locust4j.runtime.RunnerState
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
visit(Object) - 类中的方法 com.github.myzhan.locust4j.message.Visitor
 
Visitor - com.github.myzhan.locust4j.message中的类
 
Visitor(MessagePacker) - 类的构造器 com.github.myzhan.locust4j.message.Visitor
 

W

wakeMeUp() - 类中的方法 com.github.myzhan.locust4j.stats.Stats
 
WeighingTaskSet - com.github.myzhan.locust4j.taskset中的类
 
WeighingTaskSet(String, int) - 类的构造器 com.github.myzhan.locust4j.taskset.WeighingTaskSet
 

Z

ZeromqClient - com.github.myzhan.locust4j.rpc中的类
Locust used to support both plain-socket and zeromq.
ZeromqClient(String, int, String) - 类的构造器 com.github.myzhan.locust4j.rpc.ZeromqClient
 
A C D E G I L M N O Q R S T U V W Z 
所有程序包|所有类和接口