|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
addJob put a new job into the work queue
and notify the next available thread.
addJob - places the supplied job
into the work queue, signalling any available
thread to check the queue.
findMe called by a pool thread to find itself in the
vector of available threads.
firstIdleThread - Called by the thread
pool to find the first idle thread.
getJob retrieve the next available job.
getState return the current snapshot
of the puddle state.
getState - return the current puddle status.
getStatistics retrieve the current job execution statistics.
idleMe mark the current thread as idle.
Paddle contains the runnable job to perform and statistics
related to running the job.Paddle instance for the supplied job.
Piddle contains a thread and 'run' state for the thread
supporting allocation of threads to jobs.Piddle instance.
PiddleThread every pooled thread is an
instance of PiddleThread.PiddleThread Pass in the pool instance for synchronization.
removeMe called by a pool thread to remove itself from
the vector of available threads
run - This is where all the action is...
State holds the state of the
ThreadPuddle.Statistics - job execution statistics.Statistics instance.
ThreadPuddleImpl - create a new
ThreadPuddleImpl initializing state from
the supplied properties.
toString - representation of the current statistics.
State - create a String presentation of
the puddle state.
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||