MySQL 5.6.14 Source Code Document
|
Classes | |
class | Op |
Public Member Functions | |
void | run () |
Static Public Member Functions | |
static void | parseArguments (String[] args) |
static void | clearPropFileNames () |
Protected Member Functions | |
abstract void | initConnection () throws Exception |
abstract void | closeConnection () throws Exception |
abstract void | initOperations () throws Exception |
abstract void | closeOperations () throws Exception |
abstract void | clearPersistenceContext () throws Exception |
abstract void | clearData () throws Exception |
abstract void | beginTransaction () throws Exception |
abstract void | commitTransaction () throws Exception |
abstract void | rollbackTransaction () throws Exception |
void | init () throws Exception |
void | close () throws Exception |
boolean | parseBoolean (String k) |
int | parseInt (String k, int vdefault) |
void | initProperties () |
void | printProperties () |
void | runTests () throws Exception |
void | runOperations (int countA, int countB) throws Exception |
void | runOp (Op op, int countA, int countB) throws Exception |
void | begin (String name) throws Exception |
void | commit (String name) throws Exception |
Static Protected Member Functions | |
static final void | verify (boolean cond) |
static void | loadSystemLibrary (String name) |
Protected Attributes | |
final Properties | props = new Properties() |
String | descr = "" |
boolean | logRealTime = false |
boolean | logMemUsage = false |
boolean | includeFullGC = false |
boolean | logSumOfOps = false |
boolean | renewOperations = false |
boolean | renewConnection = false |
boolean | allowExtendedPC = false |
int | aStart = (1 << 8) |
int | bStart = (1 << 8) |
int | maxStringLength = 100 |
int | warmupRuns = 0 |
int | hotRuns = 0 |
final Set< String > | exclude = new HashSet<String>() |
final List< Op > | ops = new ArrayList<Op>() |
Static Protected Attributes | |
static final PrintWriter | out = new PrintWriter(System.out, true) |
static final PrintWriter | err = new PrintWriter(System.err, true) |
static final String | endl = System.getProperty("line.separator") |
This class is part of the CRUND benchmark that measures standard database operations over a series of transactions on an increasing data set.
The abstract database operations are variations of: Create, Read, Update, Navigate, and Delete – hence, the benchmark's name: CRUND.
The actual operations are defined by subclasses to allow measuring the operation performance across different datastore implementations.
Definition at line 55 of file Driver.java.
|
inlineprotected |
Begins a benchmarked transaction.
Definition at line 510 of file Driver.java.
|
inlinestatic |
Clears the propFileNames from a previous run
Definition at line 640 of file Driver.java.
|
inlineprotected |
Releases the benchmark's resources.
Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.
Definition at line 258 of file Driver.java.
|
inlineprotected |
Closes a benchmarked transaction.
Definition at line 532 of file Driver.java.
|
inlineprotected |
Initializes the benchmark's resources.
Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.
Definition at line 242 of file Driver.java.
|
inlineprotected |
Initializes the benchmark properties.
Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.
Definition at line 321 of file Driver.java.
|
inlinestaticprotected |
Loads a dynamically linked system library and reports any failures.
Definition at line 166 of file Driver.java.
|
inlinestatic |
Parses the benchmark's command-line arguments.
Definition at line 615 of file Driver.java.
|
inlineprotected |
Retrieves a property's value and parses it as a boolean.
Definition at line 297 of file Driver.java.
|
inlineprotected |
Retrieves a property's value and parses it as a signed decimal integer.
NumberFormatException | with a descriptive error message |
Definition at line 305 of file Driver.java.
|
inlineprotected |
Prints the benchmark's properties.
Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.
Definition at line 350 of file Driver.java.
|
inline |
Runs the entire benchmark.
Definition at line 194 of file Driver.java.
|
inlineprotected |
Runs a benchmark operation.
Definition at line 498 of file Driver.java.
|
inlineprotected |
Runs a series of benchmark operations.
Definition at line 429 of file Driver.java.
|
inlineprotected |
Runs a series of benchmark operations on scaled-up data.
Definition at line 400 of file Driver.java.
|
inlinestaticprotected |
Reports an error if a condition is not met.
An invariant method to ensure the consistent application of verifying read results.
Definition at line 157 of file Driver.java.
|
staticprotected |
Shortcut to the end-of-line character sequence.
Definition at line 70 of file Driver.java.
|
staticprotected |
The stream to write error messages to.
Definition at line 65 of file Driver.java.
The list of database operations to be benchmarked. While the list instance is final, its content is managed by methods initOperations() and closeOperations() as defined by subclasses.
Definition at line 128 of file Driver.java.
|
staticprotected |
The stream to write messages to.
Definition at line 60 of file Driver.java.