public abstract class AbstractProfile extends Object implements Profile
doLoadProfile(String)
. The rest is handled by this class.Constructor and Description |
---|
AbstractProfile() |
Modifier and Type | Method and Description |
---|---|
ProfileRequest |
getProfile(Period period)
Gets the messages generation profile for the given time period.
|
void |
init(String profileSource)
Initializes the profile, e.g. reads data from an external file.
|
void |
setAutoReplay(boolean autoReplay)
Sets whether we should start from the beginning when we hit the maximal defined profile time/iteration.
|
public void init(String profileSource) throws PerfCakeException
Profile
init
in interface Profile
profileSource
- Where to read the profile data from. Can be unused by some profiles.PerfCakeException
- When it was not possible to initialize the profile.public void setAutoReplay(boolean autoReplay)
Profile
setAutoReplay
in interface Profile
autoReplay
- True if and only if we should start from the beginning.public ProfileRequest getProfile(Period period)
Profile
getProfile
in interface Profile
period
- The current performance test progress.Copyright © 2010–2017 PerfCake Community. All rights reserved.