spec.harness
Class SpecJVMBenchmarkBase

java.lang.Object
  extended by java.lang.Thread
      extended by spec.harness.BenchmarkThread
          extended by spec.harness.SpecJVMBenchmarkBase
All Implemented Interfaces:
java.lang.Runnable, SpecJVMBenchmark
Direct Known Subclasses:
Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, MainBase, XMLBenchmark

public abstract class SpecJVMBenchmarkBase
extends BenchmarkThread
implements SpecJVMBenchmark


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class spec.harness.BenchmarkThread
createValidityCheckFiles
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface spec.harness.SpecJVMBenchmark
FUNCTIONAL, INVALID, MULTI, SINGLE, STRESS
 
Constructor Summary
protected SpecJVMBenchmarkBase(BenchmarkResult bmResult, int threadId)
           
 
Method Summary
static void runSimple(java.lang.Class benchmarkClass, java.lang.String[] args)
          Help method that executes a benchmark one iteration.
static void setupBenchmark()
          This method is called before anything in the benchmark is started.
static void setupIteration()
          This method is called before each iteration of the benchmark is started.
static void tearDownBenchmark()
          This method is called after everything in the benchmark is run.
static void tearDownIteration()
          This method is called after each iteration in the benchmark is run.
static java.lang.String testType()
          Method that returns the run type of the bencmark, for example SINGLE or MULTI.
 
Methods inherited from class spec.harness.BenchmarkThread
executeIteration, getArgs, getThreadId, harnessMain, run, runLoop, setInvalidStartupResult, setItResult, setPrintProgress
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpecJVMBenchmarkBase

protected SpecJVMBenchmarkBase(BenchmarkResult bmResult,
                               int threadId)
Method Detail

setupBenchmark

public static void setupBenchmark()
This method is called before anything in the benchmark is started. Inherit this, if you want to do any one time setup things, which then is done for the complete benchmark outside the measurement period.

See Also:
BenchmarkThread

setupIteration

public static void setupIteration()
This method is called before each iteration of the benchmark is started. Inherit this, if you want to do any one time setup things, which then is done before each iteration outside the measurement period.

See Also:
BenchmarkThread

tearDownIteration

public static void tearDownIteration()
This method is called after each iteration in the benchmark is run. Inherit this, if you want to do any one time tear down things, which then is done outside the measurement period.

See Also:
BenchmarkThread

tearDownBenchmark

public static void tearDownBenchmark()
This method is called after everything in the benchmark is run. Inherit this, if you want to do any one time tear down things, which then is done outside the measurement period.

See Also:
BenchmarkThread

testType

public static java.lang.String testType()
Method that returns the run type of the bencmark, for example SINGLE or MULTI.


runSimple

public static void runSimple(java.lang.Class benchmarkClass,
                             java.lang.String[] args)
Help method that executes a benchmark one iteration. To be called from main() from benchmark Main classes.

Throws:
java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalArgumentException