|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.common.model.LoadTestModel.AbstractUsageScenario<QueryLoadTestModel.QueryApplication>
org.jminor.common.db.tools.QueryLoadTestModel.QueryScenario
public static class QueryLoadTestModel.QueryScenario
A usage scenario based on a SQL query.
Constructor Summary | |
---|---|
QueryLoadTestModel.QueryScenario(String name,
String query)
Instantiates a new non-transactional QueryScenario. |
|
QueryLoadTestModel.QueryScenario(String name,
String query,
boolean transactional)
Instantiates a new QueryScenario. |
Method Summary | |
---|---|
protected List<Object> |
getParameters()
For overriding, returns the parameter values to use for the next query execution, these must of course match the parameter slots in the underlying query. |
protected void |
performScenario(QueryLoadTestModel.QueryApplication application)
Runs a set of actions on the given application. |
Methods inherited from class org.jminor.common.model.LoadTestModel.AbstractUsageScenario |
---|
cleanup, clearExceptions, equals, getDefaultWeight, getExceptions, getName, getSuccessfulRunCount, getTotalRunCount, getUnsuccessfulRunCount, hashCode, prepare, resetRunCount, run, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryLoadTestModel.QueryScenario(String name, String query)
name
- a unique name for the scenarioquery
- the querypublic QueryLoadTestModel.QueryScenario(String name, String query, boolean transactional)
name
- a unique name for the scenarioquery
- the querytransactional
- if true, commit and rollback is performed on success and error respectivelyMethod Detail |
---|
protected final void performScenario(QueryLoadTestModel.QueryApplication application) throws LoadTest.ScenarioException
LoadTestModel.AbstractUsageScenario
performScenario
in class LoadTestModel.AbstractUsageScenario<QueryLoadTestModel.QueryApplication>
application
- the connection pool providing connections
ScenarioException
- in case of an exception during the scenario run
LoadTest.ScenarioException
protected List<Object> getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |