test
Class RunTest

java.lang.Object
  extended bytest.RunTest

public class RunTest
extends java.lang.Object

Base class for XML Binary Information Set testing. Contains the method used to read the list of files from the command line, which sets up the XML documents and calls the methods implemented in the subclass for actual processing.

Version:
0.8
Author:
Dennis M. Sosnoski

Field Summary
static int INPUT_SIZE_OFFSET
           
static int OUTPUT_SIZE_OFFSET
           
static int PARSE_TIME_OFFSET
           
static int READ_TIME_OFFSET
           
static int READEVENT_TIME_OFFSET
           
static java.lang.String[] RESULT_NAMES
           
static int RESULTS_ARRAY_SIZE
           
static int WRITE_TIME_OFFSET
           
static int WRITEEVENT_TIME_OFFSET
           
 
Constructor Summary
protected RunTest()
          Constructor.
 
Method Summary
static long getMemoryUsage()
          Calculates the current memory usage.
static void main(java.lang.String[] argv)
          Test driver, just reads the input files and executes the processing code.
static void printSummary(java.lang.String lead, DocumentSummary info)
          Print document summary information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARSE_TIME_OFFSET

public static final int PARSE_TIME_OFFSET
See Also:
Constant Field Values

WRITEEVENT_TIME_OFFSET

public static final int WRITEEVENT_TIME_OFFSET
See Also:
Constant Field Values

READEVENT_TIME_OFFSET

public static final int READEVENT_TIME_OFFSET
See Also:
Constant Field Values

READ_TIME_OFFSET

public static final int READ_TIME_OFFSET
See Also:
Constant Field Values

WRITE_TIME_OFFSET

public static final int WRITE_TIME_OFFSET
See Also:
Constant Field Values

INPUT_SIZE_OFFSET

public static final int INPUT_SIZE_OFFSET
See Also:
Constant Field Values

OUTPUT_SIZE_OFFSET

public static final int OUTPUT_SIZE_OFFSET
See Also:
Constant Field Values

RESULTS_ARRAY_SIZE

public static final int RESULTS_ARRAY_SIZE
See Also:
Constant Field Values

RESULT_NAMES

public static final java.lang.String[] RESULT_NAMES
Constructor Detail

RunTest

protected RunTest()
Constructor. Just initializes and prints the JVM information.

Method Detail

getMemoryUsage

public static long getMemoryUsage()
Calculates the current memory usage. This method first loops through multiple garbage collection requests and waits in order to encourage the JVM to do a full collection.

Returns:
computed memory usage

printSummary

public static void printSummary(java.lang.String lead,
                                DocumentSummary info)
Print document summary information. Prints the information with a supplied lead phrase.

Parameters:
lead - lead text phrase for document summary
info - document summary information

main

public static void main(java.lang.String[] argv)
Test driver, just reads the input files and executes the processing code.

Parameters:
argv - command line arguments


Company Web Site

XML Binary Information Set Home