public static class QueryLoadTestModel.QueryScenario extends LoadTestModel.AbstractUsageScenario<QueryLoadTestModel.QueryApplication>
Constructor and Description |
---|
QueryScenario(java.lang.String name,
java.lang.String query)
Instantiates a new non-transactional QueryScenario.
|
QueryScenario(java.lang.String name,
java.lang.String query,
boolean transactional)
Instantiates a new QueryScenario.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.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.
|
cleanup, clearExceptions, equals, getDefaultWeight, getExceptions, getName, getSuccessfulRunCount, getTotalRunCount, getUnsuccessfulRunCount, hashCode, prepare, resetRunCount, run, toString
public QueryScenario(java.lang.String name, java.lang.String query)
name
- a unique name for the scenarioquery
- the querypublic QueryScenario(java.lang.String name, java.lang.String query, boolean transactional)
name
- a unique name for the scenarioquery
- the querytransactional
- if true, commit and rollback is performed on success and error respectivelyprotected final void performScenario(QueryLoadTestModel.QueryApplication application) throws LoadTest.ScenarioException
LoadTestModel.AbstractUsageScenario
performScenario
in class LoadTestModel.AbstractUsageScenario<QueryLoadTestModel.QueryApplication>
application
- the connection pool providing connectionsScenarioException
- in case of an exception during the scenario runLoadTest.ScenarioException
protected java.util.List<java.lang.Object> getParameters()