|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--uk.org.skeet.jbench.tasks.SimpleTask
|
+--uk.org.skeet.jbench.tasks.PreparedStatementTask
Class to create a large number of similar or the same PreparedStatements on a single connection - this tests whether or not the driver itself caches the parsed statements.
| Constructor Summary | |
PreparedStatementTask()
|
|
| Method Summary | |
void |
checkConfiguration()
Checks that we have a positive size |
void |
checkResults()
Closes the connection. |
java.lang.String |
getDescription()
Default description which gives the name of the actual class and the number of iterations. |
void |
prepareTest()
Simple no-op implementation of prepareTest. |
void |
runTest()
Runs a test. |
void |
setDriver(java.lang.String driver)
Sets the driver |
void |
setJustTestString(boolean justTestString)
Sets the justTestString |
void |
setSame(boolean same)
Sets the same parameter |
void |
setUrl(java.lang.String url)
Sets the url |
| Methods inherited from class uk.org.skeet.jbench.tasks.SimpleTask |
getSize, setSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PreparedStatementTask()
| Method Detail |
public void runTest()
throws TaskException
BenchTaskBenchTask.runTest()
public void prepareTest()
throws TaskException
SimpleTaskprepareTest in class SimpleTaskSimpleTask.prepareTest()
public void checkConfiguration()
throws ConfigurationException
SimpleTaskcheckConfiguration in class SimpleTaskSimpleTask.checkConfiguration()public void setUrl(java.lang.String url)
url - The url to setpublic void setSame(boolean same)
same - The same to setpublic void setDriver(java.lang.String driver)
driver - The driver to set
public void checkResults()
throws TaskException
checkResults in class SimpleTaskSimpleTask.checkResults()public void setJustTestString(boolean justTestString)
justTestString - The justTestString to setpublic java.lang.String getDescription()
SimpleTaskgetDescription in class SimpleTaskSimpleTask.getDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||