A C D E F G I J M N O P R S T U V W

A

AbstractThreadPool - class org.jcomponent.threadpool.impl.AbstractThreadPool.
This is the base class of all ThreadPools.
AbstractThreadPool() - Constructor for class org.jcomponent.threadpool.impl.AbstractThreadPool
 
AvalonCommonsThreadPool - class org.jcomponent.threadpool.impl.AvalonCommonsThreadPool.
The AvalonCommonsThreadPool wraps the CommonsThreadPool for Avalon-compatible systems.
AvalonCommonsThreadPool() - Constructor for class org.jcomponent.threadpool.impl.AvalonCommonsThreadPool
 
activateObject(Object) - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
activate a worker.

C

CommonsThreadPool - class org.jcomponent.threadpool.impl.CommonsThreadPool.
The CommonsThreadPool is a component that provides a basic mechanism for pooling threads.
CommonsThreadPool() - Constructor for class org.jcomponent.threadpool.impl.CommonsThreadPool
 
configure(Configuration) - Method in class org.jcomponent.threadpool.impl.AvalonCommonsThreadPool
Configure the pool.
configure(Configuration) - Method in class org.jcomponent.threadpool.impl.DNACommonsThreadPool
Configure the pool.
createWorker() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Create a WorkerThread and start it up.
createWorker() - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Overide creation of worker to add logging.

D

DNACommonsThreadPool - class org.jcomponent.threadpool.impl.DNACommonsThreadPool.
The DNACommonsThreadPool wraps the CommonsThreadPool for DNA-compatible systems.
DNACommonsThreadPool() - Constructor for class org.jcomponent.threadpool.impl.DNACommonsThreadPool
 
debug(String) - Method in class org.jcomponent.threadpool.impl.WorkerThread
Write a debug message.
destroyObject(Object) - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Destroy a worker.
destroyWorker(WorkerThread) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Destroy a worker thread by scheduling it for shutdown.
destroyWorker(WorkerThread) - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Overide destruction of worker to add logging.
dispose() - Method in class org.jcomponent.threadpool.impl.AvalonCommonsThreadPool
 
dispose() - Method in class org.jcomponent.threadpool.impl.DNACommonsThreadPool
 

E

Executable - interface org.jcomponent.threadpool.Executable.
The Executable can be implemented by components that need to perform some work.
enableLogging(Logger) - Method in class org.jcomponent.threadpool.impl.AvalonCommonsThreadPool
Set the logger for component.
enableLogging(Logger) - Method in class org.jcomponent.threadpool.impl.DNACommonsThreadPool
Set the logger for component.
execute() - Method in interface org.jcomponent.threadpool.Executable
Execute the action.
execute(Runnable) - Method in interface org.jcomponent.threadpool.ThreadPool
Run work in separate thread.
execute(Executable) - Method in interface org.jcomponent.threadpool.ThreadPool
Run work in separate thread.
execute(Runnable) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Run work in separate thread.
execute(Executable) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Execute some executable work in a thread.
execute(Executable) - Method in class org.jcomponent.threadpool.impl.WorkerThread
Set the Work code this Worker must execute and notifies its thread to do it.

F

finalize() - Method in class org.jcomponent.threadpool.impl.PicoCommonsThreadPool
Make sure that finalize results in disposal of the system.

G

getCommonsConfig() - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Return the configuration object for Commons Pool.
getDisposeTime() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Return the maximum amount of time that will be spent disposing a thread.
getName() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Get the name used for thread pool.
getPriority() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Return the priorty of threads created for pool.
getThreadGroup() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Return the thread group that thread pool is associated with.
getThrowable() - Method in interface org.jcomponent.threadpool.ThreadControl
Retrieve throwable that caused thread to cease execution.
getWorker() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Retrieve a worker thread from pool.
getWorker() - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Retrieve a worker thread from pool.

I

initialize() - Method in class org.jcomponent.threadpool.impl.AvalonCommonsThreadPool
Initialize the monitor then initialize parent class.
initialize() - Method in class org.jcomponent.threadpool.impl.DNACommonsThreadPool
Initialize the monitor then initialize parent class.
interrupt() - Method in interface org.jcomponent.threadpool.ThreadControl
Call Thread.interrupt() on thread being controlled.
isDaemon() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Return flag indicating whether daemon threads should be created by pool.
isFinished() - Method in interface org.jcomponent.threadpool.ThreadControl
Determine if thread has finished execution

J

join(long) - Method in interface org.jcomponent.threadpool.ThreadControl
Wait for specified time for thread to complete it's work.

M

makeObject() - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Create a new worker.

N

newThreadPool(String, int, boolean, int, int) - Method in interface org.jcomponent.threadpool.impl.ThreadPoolMonitor
 
newWorkerThread(String) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Create a new worker for pool.

O

org.jcomponent.threadpool - package org.jcomponent.threadpool
 
org.jcomponent.threadpool.impl - package org.jcomponent.threadpool.impl
 

P

PicoCommonsThreadPool - class org.jcomponent.threadpool.impl.PicoCommonsThreadPool.
The PicoCommonsThreadPool wraps the CommonsThreadPool for Pico-compatible systems.
PicoCommonsThreadPool(ThreadPoolMonitor, String, int, boolean, boolean, int, int) - Constructor for class org.jcomponent.threadpool.impl.PicoCommonsThreadPool
Constructor
PicoCommonsThreadPool.Default - class org.jcomponent.threadpool.impl.PicoCommonsThreadPool.Default.
 
PicoCommonsThreadPool.Default() - Constructor for class org.jcomponent.threadpool.impl.PicoCommonsThreadPool.Default
 
PicoCommonsThreadPool.WithMonitor - class org.jcomponent.threadpool.impl.PicoCommonsThreadPool.WithMonitor.
 
PicoCommonsThreadPool.WithMonitor(ThreadPoolMonitor) - Constructor for class org.jcomponent.threadpool.impl.PicoCommonsThreadPool.WithMonitor
 
PicoCommonsThreadPool.WithMonitorAndConfig - class org.jcomponent.threadpool.impl.PicoCommonsThreadPool.WithMonitorAndConfig.
 
PicoCommonsThreadPool.WithMonitorAndConfig(ThreadPoolMonitor, String, int, boolean, boolean, int, int) - Constructor for class org.jcomponent.threadpool.impl.PicoCommonsThreadPool.WithMonitorAndConfig
 
passivateObject(Object) - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
passivate a worker.
postExecute() - Method in class org.jcomponent.threadpool.impl.WorkerThread
Overide this method to execute something after each bit of "work".
preExecute() - Method in class org.jcomponent.threadpool.impl.WorkerThread
Overide this method to execute something before each bit of "work".

R

recycleThread() - Method in class org.jcomponent.threadpool.impl.WorkerThread
Implement this method to replace thread back into pool.
releaseWorker(WorkerThread) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Return the WorkerThread to the pool.
releaseWorker(WorkerThread) - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Return the WorkerThread to the pool.
run() - Method in class org.jcomponent.threadpool.impl.WorkerThread
The main execution loop.

S

setDaemon(boolean) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Set flag indicating whether daemon threads should be created by pool.
setDisposeTime(int) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Set the maximum amount of time that will be spent disposing a thread.
setMonitor(ThreadPoolMonitor) - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Set the Monitor to use to notify of changes in the Pool.
setName(String) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Set the name used for thread pool.
setPriority(int) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Set the priorty of threads created for pool.
setThreadGroup(ThreadGroup) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Set the thread group that thread pool is associated with.
setup() - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Initialize the underlying pool.
shutdown() - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
Shutdown all threads associated with pool.
shutdownInUseThreads() - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Helper method that attempts to shutdown all threads that originated from this pool and are currently in use.

T

ThreadControl - interface org.jcomponent.threadpool.ThreadControl.
This interface defines the method through which Threads can be controlled.
ThreadPool - interface org.jcomponent.threadpool.ThreadPool.
This class is the public frontend for the thread pool code.
ThreadPoolMonitor - interface org.jcomponent.threadpool.impl.ThreadPoolMonitor.
Monitor interface for ThreadPool.
threadCompleted(WorkerThread) - Method in class org.jcomponent.threadpool.impl.AbstractThreadPool
Return the WorkerThread to management by the ThreadPool object.
threadCreated(Thread) - Method in interface org.jcomponent.threadpool.impl.ThreadPoolMonitor
 
threadDisposing(Thread) - Method in interface org.jcomponent.threadpool.impl.ThreadPoolMonitor
 
threadRetrieved(Thread) - Method in interface org.jcomponent.threadpool.impl.ThreadPoolMonitor
 
threadReturned(Thread) - Method in interface org.jcomponent.threadpool.impl.ThreadPoolMonitor
 

U

unexpectedError(String, Throwable) - Method in interface org.jcomponent.threadpool.impl.ThreadPoolMonitor
 

V

validateObject(Object) - Method in class org.jcomponent.threadpool.impl.CommonsThreadPool
validate a worker.

W

WorkerThread - class org.jcomponent.threadpool.impl.WorkerThread.
This class extends the Thread class to add recyclable functionalities.
WorkerThread(AbstractThreadPool, ThreadGroup, String) - Constructor for class org.jcomponent.threadpool.impl.WorkerThread
Allocates a new Worker object.

A C D E F G I J M N O P R S T U V W

Copyright © 2000-2003 The Spice Group. All Rights Reserved.