public void init() throws Exception {
if (workerThreadPools != null) {
final Iterator iter = workerThreadPools.keySet().iterator();
while (iter.hasNext()) {
final String key = (String) iter.next();
final ThreadPool pool = (ThreadPool) workerThreadPools.get(key);
synchronized (pools) {
pools.put(pool.getName(), pool);
}
}
}
// Check if a "default" pool has been created
final ThreadPool defaultThreadPool = (ThreadPool) pools.get(ThreadPool.DEFAULT_THREADPOOL_NAME);
if (null == defaultThreadPool) {
createPool(ThreadPool.DEFAULT_THREADPOOL_NAME, ThreadPool.DEFAULT_QUEUE_SIZE,
ThreadPool.DEFAULT_MAX_POOL_SIZE, ThreadPool.DEFAULT_MIN_POOL_SIZE,
convertPriority(ThreadPool.DEFAULT_THREAD_PRIORITY), ThreadPool.DEFAULT_DAEMON_MODE,