public class CustomProfileGenerator extends ConstantSpeedMessageGenerator
Constructor and Description |
---|
CustomProfileGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
generate()
Generates the messages.
|
String |
getProfileClass()
Gets the class name of the profile.
|
String |
getProfileSource()
Gets where to read the profile data from.
|
boolean |
isAutoReplay()
Gets whether we should start from the beginning when we hit the maximal defined profile time/iteration.
|
CustomProfileGenerator |
setAutoReplay(boolean autoReplay)
Sets whether we should start from the beginning when we hit the maximal defined profile time/iteration.
|
CustomProfileGenerator |
setProfileClass(String profileClass)
Sets the class name of the profile.
|
CustomProfileGenerator |
setProfileSource(String profileSource)
Sets where to read the profile data from.
|
getSpeed, setSpeed
getDuration, getMonitoringPeriod, getSenderTaskQueueSize, getShutdownPeriod, setMonitoringPeriod, setReportManager, setSenderTaskQueueSize, setShutdownPeriod
close, getActiveThreadsCount, getTasksInQueue, getThreads, init, interrupt, isFailFast, setCorrelator, setRunInfo, setSequenceManager, setThreads, setValidationManager
public void generate() throws Exception
AbstractMessageGenerator
generate
in interface MessageGenerator
generate
in class DefaultMessageGenerator
Exception
- When it was not possible to generate the messages.public String getProfileClass()
public CustomProfileGenerator setProfileClass(String profileClass)
profileClass
- The class name of the profile.public String getProfileSource()
public CustomProfileGenerator setProfileSource(String profileSource)
profileSource
- Where to read the profile data from.public boolean isAutoReplay()
public CustomProfileGenerator setAutoReplay(boolean autoReplay)
autoReplay
- True if and only if we should start from the beginning.Copyright © 2010–2017 PerfCake Community. All rights reserved.