Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
D
F
G
I
J
L
N
R
S
T
U
W
A
addBlockingWork(Runnable)
- Method in interface sjt.mgmt.
WorkManager
In contrast with addWork methods, addBlockingWork adds a wait condition so that the execution halts once the work is added to the thread manager.
addBlockingWork(Runnable)
- Method in class sjt.mgmt.
SimpleWorkManager
Add a Runnable object to the work list, notify waiting threads of new work, and block until run method exits
addBlockingWork(Runnable, Object)
- Method in interface sjt.mgmt.
WorkManager
The Object lock will be used by the thread manager to notify the callers code.
addBlockingWork(Runnable, Object)
- Method in class sjt.mgmt.
SimpleWorkManager
Add a Runnable object to the work list, notify waiting threads of new work, and block on provided lock object until run method exits.
addThread(Thread)
- Method in interface sjt.mgmt.
ThreadingGroup
Add thread to the wrapped collection.
addThread(Thread)
- Method in class sjt.mgmt.
ThreadArray
Add thread to the wrapped collection.
addWork(Object)
- Method in interface sjt.mgmt.
WorkGroup
Add work to the wrapped collection.
addWork(Object)
- Method in class sjt.mgmt.
LinkedListWorkGroup
Add work to the wrapped collection.
addWork(Runnable)
- Method in interface sjt.mgmt.
WorkManager
The primary interface to all SJT.Mgmt threading solutions.
addWork(Runnable)
- Method in class sjt.mgmt.
SimpleWorkManager
Add a Runnable object to the work list, and notify waiting threads of new work.
addWork(Runnable, Object)
- Method in interface sjt.mgmt.
WorkManager
The Object lock is used by the thread manager to notify the callers code.
addWork(Runnable, Object)
- Method in class sjt.mgmt.
SimpleWorkManager
Add a Runnable object to the work list, and notify waiting threads of new work.
B
BLOCK
- Static variable in interface sjt.mgmt.
WorkManager
D
destroy()
- Method in interface sjt.mgmt.
ThreadManager
Destroy can be called by the WorkManager in order to prompt joining and cleanup of all working threads.
destroy()
- Method in interface sjt.mgmt.
WorkManager
Destroy can be called by the user code in order to prompt joining and cleanup of all working threads.
destroy()
- Method in interface sjt.mgmt.
ThreadingGroup
Destroy can be called by the user code in order to prompt joining and cleanup of all working threads.
destroy()
- Method in class sjt.mgmt.
ThreadArray
Destroy can be called by the user code in order to prompt joining and cleanup of all working threads.
destroy()
- Method in class sjt.mgmt.
SimpleWorkManager
Set resources to null once work list is null.
destroy()
- Method in class sjt.mgmt.
SimpleThreadManager
Called by code or the finalize method.
F
finalize()
- Method in class sjt.mgmt.
SimpleWorkManager
Override finalize method with one that calls destroy.
finalize()
- Method in class sjt.mgmt.
SimpleThreadManager
Performs thread cleanup.
G
Gate
- class sjt.util.
Gate
.
Gate gathers all running thread and synch them once a particular task is executed.In the wait method, threads simply wait until the last thread is gathered.
Gate(int)
- Constructor for class sjt.util.
Gate
Create a Gate with a thread size.
I
isEmpty()
- Method in interface sjt.mgmt.
ThreadingGroup
Check whether work has one or more work items in collection.
isEmpty()
- Method in interface sjt.mgmt.
WorkGroup
Check whether work has one or more work items in collection.
isEmpty()
- Method in class sjt.mgmt.
ThreadArray
Check whether work has one or more work items in collection.
isEmpty()
- Method in class sjt.mgmt.
LinkedListWorkGroup
Check whether work has one or more work items in collection.
J
join(ThreadingGroup)
- Static method in class sjt.util.
Gate
Perform an immediate interrupt and join on all threads in the ThreadingGroup.
L
LinkedListWorkGroup
- class sjt.mgmt.
LinkedListWorkGroup
.
This is implementation of the WorkGroup interface.
LinkedListWorkGroup()
- Constructor for class sjt.mgmt.
LinkedListWorkGroup
N
NON_BLOCK
- Static variable in interface sjt.mgmt.
WorkManager
R
removeThread()
- Method in interface sjt.mgmt.
ThreadingGroup
Remove one thread from the wrapped collection.
removeThread()
- Method in class sjt.mgmt.
ThreadArray
Remove one thread from the wrapped collection.
removeWork()
- Method in interface sjt.mgmt.
WorkGroup
Remove work from the wrapped collection.The collection itself will decide whether this is FIFO, LIFO, and any other necessary ordering.
removeWork()
- Method in class sjt.mgmt.
LinkedListWorkGroup
Remove work from the wrapped collection.The collection itself will decide whether this is FIFO, LIFO, and any other necessary ordering.
S
setUp()
- Method in class sjt.mgmt.
ThreadTest
SimpleThreadManager
- class sjt.mgmt.
SimpleThreadManager
.
ThreadManager class is in charge of construction, starting, and destroying working threads.
SimpleThreadManager(String, WorkGroup, int)
- Constructor for class sjt.mgmt.
SimpleThreadManager
SimpleWorkManager
- class sjt.mgmt.
SimpleWorkManager
.
WorkManager is the first implementation of all SJT.Mgmt threading solutions.
SimpleWorkManager(String, int)
- Constructor for class sjt.mgmt.
SimpleWorkManager
Creates new SimpleWorkManager, construct an empty WorkGroup.
size()
- Method in interface sjt.mgmt.
ThreadingGroup
Check how many items in work collection.
size()
- Method in interface sjt.mgmt.
WorkGroup
Check how many items in work collection.
size()
- Method in class sjt.mgmt.
ThreadArray
Check how many items in work collection.
size()
- Method in class sjt.mgmt.
LinkedListWorkGroup
Check how many items in work collection.
T
tearDown()
- Method in class sjt.mgmt.
ThreadTest
testBlockingAdd()
- Method in class sjt.mgmt.
ThreadTest
testNonBlockingAdd()
- Method in class sjt.mgmt.
ThreadTest
ThreadArray
- class sjt.mgmt.
ThreadArray
.
An implementation of ThreadingGroup interface.
ThreadArray(String, int)
- Constructor for class sjt.mgmt.
ThreadArray
ThreadingGroup
- interface sjt.mgmt.
ThreadingGroup
.
An interface for a threading group collection.
ThreadManager
- interface sjt.mgmt.
ThreadManager
.
ThreadManager is the interface for SJT.Mgmt threading model implementations.
ThreadTest
- class sjt.mgmt.
ThreadTest
.
TestCase is a JUnit test case for any SJT.Mgmt threading model tests.
ThreadTest(String)
- Constructor for class sjt.mgmt.
ThreadTest
Creates new ThreadTest
U
useThread()
- Method in interface sjt.mgmt.
ThreadingGroup
Similiar to removeThread but the thread reference is maintained in Group.
useThread()
- Method in class sjt.mgmt.
ThreadArray
Similiar to removeThread but the thread reference is maintained in Group.
W
wait(ThreadingGroup)
- Static method in class sjt.util.
Gate
Perform a join on all threads in the ThreadingGroup.
waitSynch()
- Method in class sjt.util.
Gate
Place a thread into the wait state, and notify once the last thread size calls method.
WorkGroup
- interface sjt.mgmt.
WorkGroup
.
An interface for a work group collection.
WorkManager
- interface sjt.mgmt.
WorkManager
.
WorkManager is the public interface for all SJT.Mgmt threading solutions.
A
B
D
F
G
I
J
L
N
R
S
T
U
W
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES