|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spec.harness.Context
public final class Context
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 |
---|
public Context()
Method Detail |
---|
public static SuiteResult getSuiteResult()
public static void setSuiteResult(SuiteResult sr)
public static java.io.PrintStream getOut()
public static void setOut(java.io.PrintStream os)
public static void setSpecBasePath(java.lang.String basepath)
basepath
- The URL of the file.public static java.lang.String getSpecBasePath()
public static void setResultDirNameBase(java.lang.String resultDirNameBase)
public static java.lang.String getResultDirNameBase()
public static void setResultDirNameCurrent(java.lang.String resultDirNameCurrent)
public static java.lang.String getResultDirNameCurrent()
public static java.lang.String getResourceDirFor(java.lang.Class benchmarkMainClass)
public static void setVerify(boolean value)
public static boolean getVerify()
public static FileCache getFileCache()
public static java.lang.String staticToString()
public static java.io.PrintStream getXmlResultFile()
public static void setXmlResultFile(java.io.PrintStream xmlResultFile)
public static void closeXmlResultFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |