public class DefaultMessageGenerator extends AbstractMessageGenerator
Constructor and Description |
---|
DefaultMessageGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate()
Generates the messages.
|
long |
getDuration()
Gets the duration period for which the generator will generate the measured load.
|
long |
getMonitoringPeriod()
Gets a monitoring period in which the sender task queue is filled with new tasks.
|
int |
getSenderTaskQueueSize()
Gets the size of the internal sender task queue.
|
long |
getShutdownPeriod()
Gets the shutdown period.
|
DefaultMessageGenerator |
setMonitoringPeriod(long monitoringPeriod)
Gets a monitoring period in which the sender task queue is filled with new tasks.
|
void |
setReportManager(ReportManager reportManager)
Sets the
ReportManager to be used for the current performance test execution. |
DefaultMessageGenerator |
setSenderTaskQueueSize(int senderTaskQueueSize)
Sets the the size of the internal sender task queue.
|
DefaultMessageGenerator |
setShutdownPeriod(long shutdownPeriod)
Sets the shutdown period which tells how frequently we should check for threads finishing their work.
|
close, getActiveThreadsCount, getTasksInQueue, getThreads, init, interrupt, isFailFast, setCorrelator, setRunInfo, setSequenceManager, setThreads, setValidationManager
public long getShutdownPeriod()
public DefaultMessageGenerator setShutdownPeriod(long shutdownPeriod)
shutdownPeriod
- The new shutdown period.public void setReportManager(ReportManager reportManager)
AbstractMessageGenerator
ReportManager
to be used for the current performance test execution.setReportManager
in interface MessageGenerator
setReportManager
in class AbstractMessageGenerator
reportManager
- ReportManager
to be used.public void generate() throws Exception
AbstractMessageGenerator
generate
in interface MessageGenerator
generate
in class AbstractMessageGenerator
Exception
- When it was not possible to generate the messages.public long getMonitoringPeriod()
public DefaultMessageGenerator setMonitoringPeriod(long monitoringPeriod)
monitoringPeriod
- The monitoring period.public long getDuration()
run
type.public int getSenderTaskQueueSize()
public DefaultMessageGenerator setSenderTaskQueueSize(int senderTaskQueueSize)
senderTaskQueueSize
- The sender task queue size.Copyright © 2010–2017 PerfCake Community. All rights reserved.