|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsuramadu.tests.latency.WaitFreeWrite
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:
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 |
public static WaitFreeWrite.TestProps testProps
public static long[] timeArray
public static int counter
public static javax.realtime.WaitFreeWriteQueue wfwq
public static long[] readTimeArray
public static long[] writeTimeArray
Constructor Detail |
public WaitFreeWrite() throws java.lang.Exception
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception
public WaitFreeWrite(WaitFreeWrite.TestProps props) throws java.lang.Exception
Method Detail |
public static void main(java.lang.String[] args)
args
- the command line argumentspublic void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |