TET
Class TetThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--TET.TetThread
All Implemented Interfaces:
java.lang.Runnable

public class TetThread
extends java.lang.Thread

The thread class which test purposes should use when running multi-threaded tests.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TetThread(TestSession ts, java.lang.Runnable target)
          Create a new thread for use with a TET TestSession.
TetThread(TestSession ts, java.lang.Runnable target, long waitTime)
          Create a new thread for use with a TET TestSession.
TetThread(TestSession ts, java.lang.Runnable target, java.lang.String name)
          Create a new thread for use with a TET TestSession.
TetThread(TestSession ts, java.lang.Runnable target, java.lang.String name, long waitTime)
          Create a new thread for use with a TET TestSession.
TetThread(TestSession ts, java.lang.String name)
          Create a new thread for use with a TET TestSession.
TetThread(TestSession ts, java.lang.String name, long waitTime)
          Create a new thread for use with a TET TestSession.
TetThread(java.lang.ThreadGroup group, java.lang.Runnable target)
          Create a new thread.
TetThread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
          Create a new thread.
TetThread(java.lang.ThreadGroup group, java.lang.String name)
          Create a new thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Constructor Detail

TetThread

public TetThread(TestSession ts,
                 java.lang.Runnable target,
                 java.lang.String name,
                 long waitTime)
Create a new thread for use with a TET TestSession.

Any threads created in a test purpose using this constructor will be automatically cleaned up by the TCM at the end of the test purpose.

Parameters:
ts - the TestSession object for the current test run.
target - the target.
name - the name of the thread.
waitTime - number of milliseconds for which the TCM cleanup code will wait for this thread to die after the main thread returns.

TetThread

public TetThread(TestSession ts,
                 java.lang.Runnable target,
                 java.lang.String name)
Create a new thread for use with a TET TestSession.

Any threads created in a test purpose using this constructor will be automatically cleaned up by the TCM at the end of the test purpose.

Parameters:
ts - the TestSession object for the current test run.
target - the target.
name - the name of the thread.

TetThread

public TetThread(TestSession ts,
                 java.lang.Runnable target,
                 long waitTime)
Create a new thread for use with a TET TestSession.

Any threads created in a test purpose using this constructor will be automatically cleaned up by the TCM at the end of the test purpose.

Parameters:
ts - the TestSession object for the current test run.
target - the target.
waitTime - number of milliseconds for which the TCM cleanup code will wait for this thread to die after the main thread returns.
See Also:
TetThread(TestSession, Runnable, String, long)

TetThread

public TetThread(TestSession ts,
                 java.lang.Runnable target)
Create a new thread for use with a TET TestSession.

Any threads created in a test purpose using this constructor will be automatically cleaned up by the TCM at the end of the test purpose.

Parameters:
ts - the TestSession object for the current test run.
target - the target.
See Also:
TetThread(TestSession, Runnable, String)

TetThread

public TetThread(TestSession ts,
                 java.lang.String name,
                 long waitTime)
Create a new thread for use with a TET TestSession.

Any threads created in a test purpose using this constructor will be automatically cleaned up by the TCM at the end of the test purpose.

Parameters:
ts - the TestSession object for the current test run.
name - the name of the thread.
waitTime - number of milliseconds for which the TCM cleanup code will wait for this thread to die after the main thread returns.
See Also:
TetThread(TestSession, Runnable, String, long)

TetThread

public TetThread(TestSession ts,
                 java.lang.String name)
Create a new thread for use with a TET TestSession.
Parameters:
ts - the TestSession with which the thread is being used.
name - the name of the thread.
See Also:
TetThread(TestSession, Runnable, String)

TetThread

public TetThread(java.lang.ThreadGroup group,
                 java.lang.Runnable target,
                 java.lang.String name)
Create a new thread. It is recommended that all instances are created using one of the constructors which take a TestSession argument.
Parameters:
group - the thread group.
target - the target.
name - the name of the thread.

TetThread

public TetThread(java.lang.ThreadGroup group,
                 java.lang.Runnable target)
Create a new thread. See recommendations for TetThread.TetThread(ThreadGroup, Runnable, String).
Parameters:
group - the thread group.
target - the target.
See Also:
TetThread(ThreadGroup, Runnable, String)

TetThread

public TetThread(java.lang.ThreadGroup group,
                 java.lang.String name)
Create a new thread. See recommendations for TetThread.TetThread(ThreadGroup, Runnable, String).
Parameters:
group - the thread group.
name - the name of the thread.
See Also:
TetThread(ThreadGroup, Runnable, String)