public class LoadGenerator extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MESSAGE_DELAY |
static int |
DEFAULT_MESSAGE_PER_THREAD |
static int |
DEFAULT_THREADS |
protected static Log |
logger |
Constructor and Description |
---|
LoadGenerator() |
LoadGenerator(int threadCount,
int messagesPerThread,
int messageDelay) |
Modifier and Type | Method and Description |
---|---|
void |
generateLoad(LoadTask loadTask) |
int |
getMessageDelay() |
int |
getMessagesPerThread() |
int |
getThreadCount() |
public static final int DEFAULT_THREADS
public static final int DEFAULT_MESSAGE_PER_THREAD
public static final int DEFAULT_MESSAGE_DELAY
protected static final Log logger
public LoadGenerator()
public LoadGenerator(int threadCount, int messagesPerThread, int messageDelay)
public void generateLoad(LoadTask loadTask) throws InterruptedException, ExecutionException
public int getThreadCount()
public int getMessagesPerThread()
public int getMessageDelay()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.