public final class MySQLConsumer extends DbConsumer
DbConsumer implementation for MySQL.BENCHMARK_ROUNDS, CLASSNAME, GC_AVG, GC_INVOCATIONS, GC_STDDEV, GC_TIME, NAME, ROUND_AVG, ROUND_STDDEV, RUN_ID, TIME_BENCHMARK, TIME_WARMUP, WARMUP_ROUNDS| Constructor and Description |
|---|
MySQLConsumer()
Creates a consumer with the default file name.
|
MySQLConsumer(String dbUrl)
Creates a consumer with the default charts and custom key dirs.
|
MySQLConsumer(String dbUrl,
File chartsDir,
String customKeyValue)
Creates a consumer with the specified database file, charts directory,
and custom key value.
|
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
createConnection()
Instantiates the database connection.
|
protected String |
getAddCustomKeySql()
Gets the SQL for adding a custom key.
|
protected String |
getCreateDbVersionSql()
Gets the SQL for creating the DB Version table.
|
protected String |
getCreateRunsSql()
Gets the SQL for creating the runs table.
|
protected String |
getCreateTestsSql()
Gets the SQL for creating the tests table.
|
String |
getMethodChartPropertiesQuery()
Gets the SQL for obtaining method chart properties.
|
String |
getMethodChartResultsQuery()
Gets the SQL for obtaining method chart results.
|
protected String |
getNewRunSql()
Gets the SQL for inserting into the runs table.
|
protected String |
getTestInsertSql()
Gets the SQL for inserting into the test table.
|
accept, checkSchema, close, getChartsDir, getConnection, getCustomKeyValue, getDbVersion, getDefaultChartsDir, getDefaultCustomKey, getHistoryHtmlTemplate, getMethodHtmlTemplate, getResource, getRunId, getTestInsertStatement, rollbackaddAutoclose, removeAutoclosepublic MySQLConsumer()
public MySQLConsumer(String dbUrl)
dbUrl - the database file nameprotected Connection createConnection() throws SQLException
DbConsumercreateConnection in class DbConsumerSQLException - if the database connection cannot be createdpublic String getMethodChartResultsQuery()
DbConsumergetMethodChartResultsQuery in class DbConsumerpublic String getMethodChartPropertiesQuery()
DbConsumergetMethodChartPropertiesQuery in class DbConsumerprotected String getCreateRunsSql()
DbConsumergetCreateRunsSql in class DbConsumerprotected String getCreateTestsSql()
DbConsumergetCreateTestsSql in class DbConsumerprotected String getNewRunSql()
DbConsumergetNewRunSql in class DbConsumerprotected String getTestInsertSql()
DbConsumergetTestInsertSql in class DbConsumerprotected String getCreateDbVersionSql()
DbConsumergetCreateDbVersionSql in class DbConsumerprotected String getAddCustomKeySql()
DbConsumergetAddCustomKeySql in class DbConsumerCopyright © 2016 SciJava. All rights reserved.