spec.benchmarks.xml
Class XMLBenchmark

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

public abstract class XMLBenchmark
extends SpecJVMBenchmarkBase


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  javax.xml.parsers.DocumentBuilder builder
           
protected  ReportingHandler callbackReporter
           
protected  javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory
           
protected  javax.xml.parsers.SAXParserFactory SAXfactory
           
protected  javax.xml.parsers.SAXParser saxParser
           
protected  org.xml.sax.XMLReader xmlParser
           
 
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
XMLBenchmark(BenchmarkResult bmResult, int threadId)
           
 
Method Summary
 javax.xml.transform.Source createDomSource(FileCache.CachedFile cachedInput)
           
 javax.xml.transform.Source createSaxSource(FileCache.CachedFile cachedInput)
           
static FileCache.CachedFile getCachedFile(java.lang.Class cls, java.lang.String dirName, java.lang.String name)
           
static java.lang.String getFullName(java.lang.Class cls, java.lang.String dirName, java.lang.String name)
           
static void remove(java.io.File file)
           
 
Methods inherited from class spec.harness.SpecJVMBenchmarkBase
runSimple, setupBenchmark, setupIteration, tearDownBenchmark, tearDownIteration, testType
 
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
 

Field Detail

documentBuilderFactory

protected javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory

SAXfactory

protected javax.xml.parsers.SAXParserFactory SAXfactory

callbackReporter

protected ReportingHandler callbackReporter

builder

protected javax.xml.parsers.DocumentBuilder builder

saxParser

protected javax.xml.parsers.SAXParser saxParser

xmlParser

protected org.xml.sax.XMLReader xmlParser
Constructor Detail

XMLBenchmark

public XMLBenchmark(BenchmarkResult bmResult,
                    int threadId)
Method Detail

createDomSource

public javax.xml.transform.Source createDomSource(FileCache.CachedFile cachedInput)
                                           throws org.xml.sax.SAXException,
                                                  java.io.IOException
Throws:
org.xml.sax.SAXException
java.io.IOException

createSaxSource

public javax.xml.transform.Source createSaxSource(FileCache.CachedFile cachedInput)
                                           throws java.io.IOException
Throws:
java.io.IOException

getFullName

public static java.lang.String getFullName(java.lang.Class cls,
                                           java.lang.String dirName,
                                           java.lang.String name)

getCachedFile

public static FileCache.CachedFile getCachedFile(java.lang.Class cls,
                                                 java.lang.String dirName,
                                                 java.lang.String name)

remove

public static void remove(java.io.File file)