|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteLoadTest
Method Summary | |
---|---|
void |
addApplicationBatch()
Adds a batch of applications. |
void |
addItem(Object item)
Adds the given item to this model with default weight of 0. |
void |
addItem(Object item,
int weight)
Adds the given item to this model with the given weight value. |
void |
decrementWeight(Object item)
Decrements the weight of the given item by one |
void |
exit()
Removes all applications and exits |
int |
getApplicationBatchSize()
|
int |
getApplicationCount()
|
int |
getItemCount()
|
Collection<ItemRandomizer.RandomItem<LoadTest.UsageScenario>> |
getItems()
|
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()
|
org.jfree.data.xy.XYDataset |
getNumberOfApplicationsDataset()
|
LoadTest.UsageScenario |
getRandomItem()
Fetches a random item from this model based on the item weights. |
org.jfree.data.xy.YIntervalSeriesCollection |
getScenarioDurationDataset(String name)
|
org.jfree.data.xy.XYDataset |
getThinkTimeDataset()
|
int |
getUpdateInterval()
|
LoadTest.UsageScenario |
getUsageScenario(String scenarioName)
|
org.jfree.data.xy.XYDataset |
getUsageScenarioDataset()
|
org.jfree.data.xy.XYDataset |
getUsageScenarioFailureDataset()
|
Collection<String> |
getUsageScenarios()
|
User |
getUser()
|
int |
getWarningTime()
|
int |
getWeight(Object item)
Returns the weight of the given item. |
double |
getWeightRatio(Object item)
Returns this items share in the total weights as a floating point number between 0 and 1 |
void |
incrementWeight(Object item)
Increments the weight of the given item by one |
boolean |
isCollectChartData()
|
boolean |
isPaused()
|
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 |
setUpdateInterval(int updateInterval)
|
void |
setUser(User user)
|
void |
setWarningTime(int warningTime)
|
void |
setWeight(Object item,
int weight)
Sets the weight of the given item |
Method Detail |
---|
void exit() throws RemoteException
RemoteException
- in case of a remote exceptionUser getUser() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setUser(User user) throws RemoteException
user
- the user to use when initializing new application instances
RemoteException
- in case of a remote exceptionLoadTest.UsageScenario getUsageScenario(String scenarioName) throws RemoteException
scenarioName
- the name of the usage scenario to fetch
RuntimeException
- if no such scenario exists
RemoteException
- in case of a remote exceptionCollection<String> getUsageScenarios() throws RemoteException
RemoteException
- in case of a remote exceptionint getWarningTime() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setWarningTime(int warningTime) throws RemoteException
warningTime
- the the maximum time in milliseconds a work request has to finish
RemoteException
- in case of a remote exceptionint getUpdateInterval() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setUpdateInterval(int updateInterval) throws RemoteException
updateInterval
- the chart data update interval
RemoteException
- in case of a remote exceptionint getApplicationCount() throws RemoteException
RemoteException
- in case of a remote exceptionint getApplicationBatchSize() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setApplicationBatchSize(int applicationBatchSize) throws RemoteException
applicationBatchSize
- the number of applications to initialize per batch
RemoteException
- in case of a remote exceptionboolean isPaused() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setPaused(boolean value) throws RemoteException
value
- true if load testing should be paused
RemoteException
- in case of a remote exceptionint getMaximumThinkTime() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setMaximumThinkTime(int maximumThinkTime) throws RemoteException
maximumThinkTime
- the maximum number of milliseconds that should pass between work requests
RemoteException
- in case of a remote exceptionint getMinimumThinkTime() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setMinimumThinkTime(int minimumThinkTime) throws RemoteException
minimumThinkTime
- the minimum number of milliseconds that should pass between work requests
RemoteException
- in case of a remote exceptionint getLoginDelayFactor() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setLoginDelayFactor(int loginDelayFactor) throws RemoteException
loginDelayFactor
- the number with which to multiply the think time when logging in
RemoteException
- in case of a remote exceptionboolean isCollectChartData() throws RemoteException
RemoteException
- in case of a remote exceptionvoid setCollectChartData(boolean value) throws RemoteException
value
- true if chart data should be collected
RemoteException
- in case of a remote exceptionvoid addApplicationBatch() throws RemoteException
RemoteException
- in case of a remote exceptionsetApplicationBatchSize(int)
void removeApplicationBatch() throws RemoteException
RemoteException
- in case of a remote exceptionsetApplicationBatchSize(int)
void resetChartData() throws RemoteException
RemoteException
- in case of a remote exceptionorg.jfree.data.xy.YIntervalSeriesCollection getScenarioDurationDataset(String name) throws RemoteException
name
- the scenario name
RemoteException
- in case of a remote exceptionorg.jfree.data.xy.XYDataset getThinkTimeDataset() throws RemoteException
RemoteException
- in case of a remote exceptionorg.jfree.data.xy.XYDataset getNumberOfApplicationsDataset() throws RemoteException
RemoteException
- in case of a remote exceptionorg.jfree.data.xy.XYDataset getUsageScenarioDataset() throws RemoteException
RemoteException
- in case of a remote exceptionorg.jfree.data.xy.XYDataset getMemoryUsageDataset() throws RemoteException
RemoteException
- in case of a remote exceptionorg.jfree.data.xy.XYDataset getUsageScenarioFailureDataset() throws RemoteException
RemoteException
- in case of a remote exceptionint getItemCount() throws RemoteException
RemoteException
- in case of a remote exceptionCollection<ItemRandomizer.RandomItem<LoadTest.UsageScenario>> getItems() throws RemoteException
RemoteException
- in case of a remote exceptionint getWeight(Object item) throws RemoteException
item
- the item
RemoteException
- in case of a remote exceptionvoid setWeight(Object item, int weight) throws RemoteException
item
- the itemweight
- the value
RemoteException
- in case of a remote exceptionvoid addItem(Object item) throws RemoteException
item
- the item to add
RemoteException
- in case of a remote exceptionvoid addItem(Object item, int weight) throws RemoteException
item
- the item to addweight
- the initial weight to assign to the item
RemoteException
- in case of a remote exceptionLoadTest.UsageScenario getRandomItem() throws RemoteException
RemoteException
- in case of a remote exceptiondouble getWeightRatio(Object item) throws RemoteException
item
- the item
RemoteException
- in case of a remote exceptionvoid incrementWeight(Object item) throws RemoteException
item
- the item
RemoteException
- in case of a remote exceptionvoid decrementWeight(Object item) throws RemoteException
item
- the item
IllegalStateException
- in case the weight is 0
RemoteException
- in case of a remote exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |