suramadu.tests
Class SuramaduTestStub

java.lang.Object
  extended bysuramadu.tests.SuramaduTestStub
All Implemented Interfaces:
java.lang.Runnable

public class SuramaduTestStub
extends java.lang.Object
implements java.lang.Runnable

This is a stubbed that demonstrates how to build a Suramadu benchmark.

PURPOSE:

DESIGN:

ASSUMPTIONS:

INPUTS:

Property Default Value Description
"iterations" "1000"
"priority" "250"
"period" "1000"
"idelay" "750"
"bgpriority" "250"
"bgperiod" "100"
"bgidelay" "400"
"backgroundthreads" "0"

OUTPUTS:

EXAMPLES:

ORIGINS:

Author:
Mark Indictor

Nested Class Summary
static class SuramaduTestStub.TestProps
           
 
Field Summary
 int counter
          iteration counter
 MemoryType mt
          Memory type to use
 SuramaduTestStub.TestProps testProps
          Local data for test: generated or otherwise calculated.
 long[] timeArray
          array for collecting timestamps during test
 ThreadType tt
          Thread type to use.
 
Constructor Summary
SuramaduTestStub()
          constructor for test class Instantiates testProperties.
SuramaduTestStub(SuramaduTestStub.TestProps props)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testProps

public SuramaduTestStub.TestProps testProps
Local data for test: generated or otherwise calculated. Not from test properties.


tt

public ThreadType tt
Thread type to use.


mt

public MemoryType mt
Memory type to use


timeArray

public long[] timeArray
array for collecting timestamps during test


counter

public int counter
iteration counter

Constructor Detail

SuramaduTestStub

public SuramaduTestStub()
                 throws java.lang.Exception
constructor for test class Instantiates testProperties.

Throws:
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception

SuramaduTestStub

public SuramaduTestStub(SuramaduTestStub.TestProps props)
                 throws java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

run

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