MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.jpatest.Driver Class Reference
Inheritance diagram for com.mysql.clusterj.jpatest.Driver:
Collaboration diagram for com.mysql.clusterj.jpatest.Driver:

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< Stringexclude = new HashSet<String>()
final List< Opops = 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")

Detailed Description

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.

See Also
Urban Dictionary: crund
  1. used to debase people who torture others with their illogical attempts to make people laugh;
  2. reference to cracking obsolete jokes;
  3. a dance form;
  4. to hit hard or smash.

Definition at line 55 of file Driver.java.

Member Function Documentation

void com.mysql.clusterj.jpatest.Driver.begin ( String  name) throws Exception
inlineprotected

Begins a benchmarked transaction.

Definition at line 510 of file Driver.java.

Here is the caller graph for this function:

static void com.mysql.clusterj.jpatest.Driver.clearPropFileNames ( )
inlinestatic

Clears the propFileNames from a previous run

Definition at line 640 of file Driver.java.

void com.mysql.clusterj.jpatest.Driver.close ( void  ) throws Exception
inlineprotected

Releases the benchmark's resources.

Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.

Definition at line 258 of file Driver.java.

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.Driver.commit ( String  name) throws Exception
inlineprotected

Closes a benchmarked transaction.

Definition at line 532 of file Driver.java.

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.Driver.init ( void  ) throws Exception
inlineprotected

Initializes the benchmark's resources.

Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.

Definition at line 242 of file Driver.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.Driver.initProperties ( )
inlineprotected

Initializes the benchmark properties.

Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.

Definition at line 321 of file Driver.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static void com.mysql.clusterj.jpatest.Driver.loadSystemLibrary ( String  name)
inlinestaticprotected

Loads a dynamically linked system library and reports any failures.

Definition at line 166 of file Driver.java.

static void com.mysql.clusterj.jpatest.Driver.parseArguments ( String[]  args)
inlinestatic

Parses the benchmark's command-line arguments.

Definition at line 615 of file Driver.java.

boolean com.mysql.clusterj.jpatest.Driver.parseBoolean ( String  k)
inlineprotected

Retrieves a property's value and parses it as a boolean.

Definition at line 297 of file Driver.java.

Here is the caller graph for this function:

int com.mysql.clusterj.jpatest.Driver.parseInt ( String  k,
int  vdefault 
)
inlineprotected

Retrieves a property's value and parses it as a signed decimal integer.

Exceptions
NumberFormatExceptionwith a descriptive error message

Definition at line 305 of file Driver.java.

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.Driver.printProperties ( )
inlineprotected

Prints the benchmark's properties.

Reimplemented in com.mysql.clusterj.jpatest.JpaLoad.

Definition at line 350 of file Driver.java.

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.Driver.run ( )
inline

Runs the entire benchmark.

Definition at line 194 of file Driver.java.

Here is the call graph for this function:

void com.mysql.clusterj.jpatest.Driver.runOp ( Op  op,
int  countA,
int  countB 
) throws Exception
inlineprotected

Runs a benchmark operation.

Definition at line 498 of file Driver.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.Driver.runOperations ( int  countA,
int  countB 
) throws Exception
inlineprotected

Runs a series of benchmark operations.

Definition at line 429 of file Driver.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void com.mysql.clusterj.jpatest.Driver.runTests ( ) throws Exception
inlineprotected

Runs a series of benchmark operations on scaled-up data.

Definition at line 400 of file Driver.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static final void com.mysql.clusterj.jpatest.Driver.verify ( boolean  cond)
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.

Member Data Documentation

final String com.mysql.clusterj.jpatest.Driver.endl = System.getProperty("line.separator")
staticprotected

Shortcut to the end-of-line character sequence.

Definition at line 70 of file Driver.java.

final PrintWriter com.mysql.clusterj.jpatest.Driver.err = new PrintWriter(System.err, true)
staticprotected

The stream to write error messages to.

Definition at line 65 of file Driver.java.

final List<Op> com.mysql.clusterj.jpatest.Driver.ops = new ArrayList<Op>()
protected

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.

final PrintWriter com.mysql.clusterj.jpatest.Driver.out = new PrintWriter(System.out, true)
staticprotected

The stream to write messages to.

Definition at line 60 of file Driver.java.


The documentation for this class was generated from the following file: