|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoadTest
Specifies a class for running multiple application instances for load testing purposes.
Nested Class Summary | |
---|---|
static class |
LoadTest.ScenarioException
An exception originating from a scenario run |
static interface |
LoadTest.UsageScenario<T>
Specifies a load test usage scenario. |
Method Summary | |
---|---|
void |
addApplicationBatch()
Adds a batch of applications. |
EventObserver |
applicationBatchSizeObserver()
|
EventObserver |
applicationCountObserver()
|
EventObserver |
collectChartDataObserver()
|
void |
exit()
Removes all applications and exits |
int |
getApplicationBatchSize()
|
int |
getApplicationCount()
|
int |
getLoginDelayFactor()
Sets the with which to multiply the think time when logging in, this helps spread the application logins when creating a batch of application. |
int |
getMaximumThinkTime()
|
org.jfree.data.xy.XYDataset |
getMemoryUsageDataset()
|
int |
getMinimumThinkTime()
|
EventObserver |
getMinimumThinkTimeObserver()
|
org.jfree.data.xy.XYDataset |
getNumberOfApplicationsDataset()
|
EventObserver |
getPauseObserver()
|
ItemRandomizer<LoadTest.UsageScenario> |
getScenarioChooser()
|
org.jfree.data.xy.YIntervalSeriesCollection |
getScenarioDurationDataset(String name)
|
org.jfree.data.xy.XYDataset |
getThinkTimeDataset()
|
int |
getUpdateInterval()
|
LoadTest.UsageScenario |
getUsageScenario(String usageScenarioName)
|
org.jfree.data.xy.XYDataset |
getUsageScenarioDataset()
|
org.jfree.data.xy.XYDataset |
getUsageScenarioFailureDataset()
|
Collection<String> |
getUsageScenarios()
|
User |
getUser()
|
int |
getWarningTime()
|
EventObserver |
getWarningTimeObserver()
|
boolean |
isCollectChartData()
|
boolean |
isPaused()
|
boolean |
isScenarioEnabled(String scenarioName)
|
EventObserver |
maximumThinkTimeObserver()
|
void |
removeApplicationBatch()
Removes one batch of applications. |
void |
resetChartData()
Resets the accumulated chart data |
void |
setApplicationBatchSize(int applicationBatchSize)
|
void |
setCollectChartData(boolean value)
|
void |
setLoginDelayFactor(int loginDelayFactor)
Sets the with which to multiply the think time when logging in, this helps spread the application logins when creating a batch of application. |
void |
setMaximumThinkTime(int maximumThinkTime)
|
void |
setMinimumThinkTime(int minimumThinkTime)
|
void |
setPaused(boolean value)
|
void |
setScenarioEnabled(String scenarioName,
boolean value)
|
void |
setUpdateInterval(int updateInterval)
|
void |
setUser(User user)
|
void |
setWarningTime(int warningTime)
|
void |
setWeight(String scenarioName,
int weight)
Sets the random chooser weight for the given scenario |
Method Detail |
---|
void exit()
User getUser()
void setUser(User user)
user
- the user to use when initializing new application instancesvoid setWeight(String scenarioName, int weight)
scenarioName
- the name of the scenarioweight
- the new weight to assign to the scenarioboolean isScenarioEnabled(String scenarioName)
scenarioName
- the scenario name
void setScenarioEnabled(String scenarioName, boolean value)
scenarioName
- the scenario namevalue
- true if the scenario should be enabledCollection<String> getUsageScenarios()
LoadTest.UsageScenario getUsageScenario(String usageScenarioName)
usageScenarioName
- the scenario name
int getWarningTime()
void setWarningTime(int warningTime)
warningTime
- the the maximum time in milliseconds a work request has to finishint getUpdateInterval()
void setUpdateInterval(int updateInterval)
updateInterval
- the chart data update intervalint getApplicationCount()
int getApplicationBatchSize()
void setApplicationBatchSize(int applicationBatchSize)
applicationBatchSize
- the number of applications to initialize per batchboolean isPaused()
void setPaused(boolean value)
value
- true if load testing should be pausedint getMaximumThinkTime()
void setMaximumThinkTime(int maximumThinkTime)
maximumThinkTime
- the maximum number of milliseconds that should pass between work requestsint getMinimumThinkTime()
void setMinimumThinkTime(int minimumThinkTime)
minimumThinkTime
- the minimum number of milliseconds that should pass between work requestsint getLoginDelayFactor()
void setLoginDelayFactor(int loginDelayFactor)
loginDelayFactor
- the number with which to multiply the think time when logging inboolean isCollectChartData()
void setCollectChartData(boolean value)
value
- true if chart data should be collectedEventObserver applicationCountObserver()
EventObserver applicationBatchSizeObserver()
void addApplicationBatch()
setApplicationBatchSize(int)
void removeApplicationBatch()
setApplicationBatchSize(int)
void resetChartData()
EventObserver collectChartDataObserver()
org.jfree.data.xy.YIntervalSeriesCollection getScenarioDurationDataset(String name)
name
- the scenario name
org.jfree.data.xy.XYDataset getThinkTimeDataset()
org.jfree.data.xy.XYDataset getNumberOfApplicationsDataset()
org.jfree.data.xy.XYDataset getUsageScenarioDataset()
org.jfree.data.xy.XYDataset getMemoryUsageDataset()
org.jfree.data.xy.XYDataset getUsageScenarioFailureDataset()
EventObserver maximumThinkTimeObserver()
EventObserver getMinimumThinkTimeObserver()
EventObserver getWarningTimeObserver()
EventObserver getPauseObserver()
ItemRandomizer<LoadTest.UsageScenario> getScenarioChooser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |