spec.harness
Class BenchmarkThread

java.lang.Object
  extended by java.lang.Thread
      extended by spec.harness.BenchmarkThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
SpecJVMBenchmarkBase

public abstract class BenchmarkThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static boolean createValidityCheckFiles
          SpecJava can be run as application to create the validity files.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 boolean executeIteration()
           
 java.lang.String[] getArgs()
           
 int getThreadId()
           
abstract  void harnessMain()
          Starts the benchmark.
 void run()
           
 LoopResult runLoop(IterationResult iResult)
          Runs the benchmark one loop.
 void setInvalidStartupResult(BenchmarkResult invalidBenchmarkResult, IterationResult invalidIterationResult)
           
 void setItResult(IterationResult itResult)
           
 void setPrintProgress(boolean printProgress)
           
 
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
 

Field Detail

createValidityCheckFiles

public static boolean createValidityCheckFiles
SpecJava can be run as application to create the validity files. This flags indicates whether SpecJVMClient98 is being run in the "Generating Validity file mode"

Method Detail

getThreadId

public int getThreadId()

getArgs

public java.lang.String[] getArgs()

setItResult

public void setItResult(IterationResult itResult)

setPrintProgress

public void setPrintProgress(boolean printProgress)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

setInvalidStartupResult

public void setInvalidStartupResult(BenchmarkResult invalidBenchmarkResult,
                                    IterationResult invalidIterationResult)

executeIteration

public boolean executeIteration()

runLoop

public LoopResult runLoop(IterationResult iResult)
Runs the benchmark one loop.


harnessMain

public abstract void harnessMain()
Starts the benchmark. Each benchmark implements this method. Given a class name, the ProgramRunner class dynamically creates the instance of the benchmark class and calls this method.

See Also:
ProgramRunner, BenchmarkThread