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

Classes

class  Op
enum  XMode

Protected Member Functions

void init () throws Exception
void close () throws Exception
void initProperties ()
void printProperties ()
abstract void initOperations () throws Exception
abstract void closeOperations () throws Exception
void runTests () throws Exception
void runLoads () throws Exception
void runLoad () throws Exception
void runSeries (int nOps) throws Exception
void runLoad (int nOps) throws Exception
void runSequence (int nOps) throws Exception
void runOperation (Op op, int nOps) throws Exception
void appendError (String where)
void reportErrors ()
final void verify (String where, int exp, int act)
void initConnections () throws Exception
void closeConnections () throws Exception
abstract void initLoad () throws Exception
abstract void closeLoad () throws Exception
abstract void initConnection () throws Exception
abstract void closeConnection () throws Exception
abstract void clearPersistenceContext () throws Exception
abstract void clearData () throws Exception
- Protected Member Functions inherited from com.mysql.cluster.crund.Driver
boolean parseBoolean (String k, boolean vdefault)
int parseInt (String k, int vdefault)
void writeProperties (String fileName)
void clearLogBuffers ()
void writeLogBuffers (String descr)
void begin (String name)
void finish (String name)

Static Protected Member Functions

static final void verify (boolean cond)
static final void verify (int exp, int act)
static final void verify (String exp, String act)
static final String myString (int n)
static final byte[] myBytes (String s)
- Static Protected Member Functions inherited from com.mysql.cluster.crund.Driver
static void exitUsage ()
static void loadSystemLibrary (String name)

Protected Attributes

final EnumSet< XMode > xMode = EnumSet.noneOf(XMode.class)
boolean renewConnection
boolean renewOperations
boolean logSumOfOps
boolean allowExtendedPC
int nOpsStart
int nOpsEnd
int nOpsScale
int maxVarbinaryBytes
int maxVarcharChars
int maxBlobBytes
int maxTextChars
final Set< Stringexclude = new HashSet<String>()
final Set< Stringinclude = new HashSet<String>()
String operationName
StringBuilder errorBuffer
boolean failOnError
final List< Opops = new ArrayList<Op>()
- Protected Attributes inherited from com.mysql.cluster.crund.Driver
final Properties props = new Properties()
boolean logRealTime
boolean logMemUsage
boolean includeFullGC
int nRuns
PrintWriter log
String descr = ""
boolean logHeader
StringBuilder header
StringBuilder rtimes
StringBuilder musage
long t0 = 0
long m0 = 0

Static Protected Attributes

static final String string1 = myString(1)
static final String string2 = myString(2)
static final String string3 = myString(3)
static final String string4 = myString(4)
static final String string5 = myString(5)
static final String string6 = myString(6)
static final String string7 = myString(7)
static final byte[] bytes1 = myBytes(string1)
static final byte[] bytes2 = myBytes(string2)
static final byte[] bytes3 = myBytes(string3)
static final byte[] bytes4 = myBytes(string4)
static final byte[] bytes5 = myBytes(string5)
static final byte[] bytes6 = myBytes(string6)
static final byte[] bytes7 = myBytes(string7)
static final String[] strings = { string1, string2, string3, string4, string5, string6, string7 }
static final byte[][] bytes = { bytes1, bytes2, bytes3, bytes4, bytes5, bytes6, bytes7 }
- Static Protected Attributes inherited from com.mysql.cluster.crund.Driver
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")
static final Runtime rt = Runtime.getRuntime()

Additional Inherited Members

- Public Member Functions inherited from com.mysql.cluster.crund.Driver
 Driver ()
void run ()
- Static Public Member Functions inherited from com.mysql.cluster.crund.Driver
static void parseArguments (String[] args)

Detailed Description

This class benchmarks 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 47 of file CrundDriver.java.

Member Function Documentation

void com.mysql.cluster.crund.CrundDriver.appendError ( String  where)
inlineprotected

Add an error to the existing errors

Definition at line 420 of file CrundDriver.java.

void com.mysql.cluster.crund.CrundDriver.reportErrors ( )
inlineprotected

Report errors and reset the error buffer

Definition at line 432 of file CrundDriver.java.

Member Data Documentation

StringBuilder com.mysql.cluster.crund.CrundDriver.errorBuffer
protected

The errors for the current test

Definition at line 71 of file CrundDriver.java.

boolean com.mysql.cluster.crund.CrundDriver.failOnError
protected

Throw an exception if an error is reported

Definition at line 74 of file CrundDriver.java.


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