spec.harness
Class Context

java.lang.Object
  extended by spec.harness.Context

public final class Context
extends java.lang.Object

This class is used to define the context for the execution of the benchmark. This container class has the parameters which can hold the benchmark run specific parameters like the run time, speed, files opened, number of cached_files, SpecBasePath, console window for displaying the trace


Constructor Summary
Context()
           
 
Method Summary
static void closeXmlResultFile()
           
static FileCache getFileCache()
           
static java.io.PrintStream getOut()
           
static java.lang.String getResourceDirFor(java.lang.Class benchmarkMainClass)
          Returns the canonical path for the resource directory for this benchmark
static java.lang.String getResultDirNameBase()
          Root folder for results
static java.lang.String getResultDirNameCurrent()
          Folder for results in this run
static java.lang.String getSpecBasePath()
          returns the specbase path
static SuiteResult getSuiteResult()
           
static boolean getVerify()
          Get verify flag
static java.io.PrintStream getXmlResultFile()
           
static void setOut(java.io.PrintStream os)
           
static void setResultDirNameBase(java.lang.String resultDirNameBase)
          Root folder for results
static void setResultDirNameCurrent(java.lang.String resultDirNameCurrent)
          Folder for results in this run
static void setSpecBasePath(java.lang.String basepath)
          This function set the SpecBasePath to the string value passed with some data stripped.
static void setSuiteResult(SuiteResult sr)
           
static void setVerify(boolean value)
          Set verify flag
static void setXmlResultFile(java.io.PrintStream xmlResultFile)
           
static java.lang.String staticToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

public Context()
Method Detail

getSuiteResult

public static SuiteResult getSuiteResult()

setSuiteResult

public static void setSuiteResult(SuiteResult sr)

getOut

public static java.io.PrintStream getOut()

setOut

public static void setOut(java.io.PrintStream os)

setSpecBasePath

public static void setSpecBasePath(java.lang.String basepath)
This function set the SpecBasePath to the string value passed with some data stripped.

Parameters:
basepath - The URL of the file.

getSpecBasePath

public static java.lang.String getSpecBasePath()
returns the specbase path


setResultDirNameBase

public static void setResultDirNameBase(java.lang.String resultDirNameBase)
Root folder for results


getResultDirNameBase

public static java.lang.String getResultDirNameBase()
Root folder for results


setResultDirNameCurrent

public static void setResultDirNameCurrent(java.lang.String resultDirNameCurrent)
Folder for results in this run


getResultDirNameCurrent

public static java.lang.String getResultDirNameCurrent()
Folder for results in this run


getResourceDirFor

public static java.lang.String getResourceDirFor(java.lang.Class benchmarkMainClass)
Returns the canonical path for the resource directory for this benchmark

Returns:
benchmark specific resource directory

setVerify

public static void setVerify(boolean value)
Set verify flag


getVerify

public static boolean getVerify()
Get verify flag


getFileCache

public static FileCache getFileCache()

staticToString

public static java.lang.String staticToString()

getXmlResultFile

public static java.io.PrintStream getXmlResultFile()

setXmlResultFile

public static void setXmlResultFile(java.io.PrintStream xmlResultFile)

closeXmlResultFile

public static void closeXmlResultFile()