suramadu.tests.latency
Class WaitFreeWrite

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

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

This test measures the time it takes for data written to a WaitFreeWriteQueue to become available by a

PURPOSE: To determine the latency of data passing through a WaitFreeQueue.

DESIGN:

ASSUMPTIONS:

INPUTS:

Property Default Value Description
"iterations" "1000"
"priority" "250"
"period" "10"
"idelay" "200"
"qsize" "30"
"readermemtype" "SCOPE"
"readerthreadtype" "NHRT"
"writermemtype" "SCOPE"
"writerthreadtype" "NHRT"

OUTPUTS: The output contains the maximum, minimum, median, mean, standard deviation and mode statistical measurements on the collected data.

EXAMPLES: None.

ORIGINS:

Author:
Mark Indictor

Nested Class Summary
static class WaitFreeWrite.TestProps
           
 
Field Summary
static int counter
          iteration counter
static long[] readTimeArray
           
static WaitFreeWrite.TestProps testProps
          actual properties used by this test run.
static long[] timeArray
          array for collecting timestamps during test
static javax.realtime.WaitFreeWriteQueue wfwq
          the queues
static long[] writeTimeArray
           
 
Constructor Summary
WaitFreeWrite()
          constructor for test class Instantiates testProperties.
WaitFreeWrite(WaitFreeWrite.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 static WaitFreeWrite.TestProps testProps
actual properties used by this test run. Filled in from default and specified properties at class instantiation.


timeArray

public static long[] timeArray
array for collecting timestamps during test


counter

public static int counter
iteration counter


wfwq

public static javax.realtime.WaitFreeWriteQueue wfwq
the queues


readTimeArray

public static long[] readTimeArray

writeTimeArray

public static long[] writeTimeArray
Constructor Detail

WaitFreeWrite

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

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

WaitFreeWrite

public WaitFreeWrite(WaitFreeWrite.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