1 5 6 package com.sun.corba.se.impl.orbutil.threadpool; 7 8 import com.sun.corba.se.spi.orbutil.threadpool.NoSuchThreadPoolException; 9 import com.sun.corba.se.spi.orbutil.threadpool.ThreadPool; 10 import com.sun.corba.se.spi.orbutil.threadpool.ThreadPoolManager; 11 import com.sun.corba.se.spi.orbutil.threadpool.ThreadPoolChooser; 12 13 import com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl; 14 import com.sun.corba.se.impl.orbutil.ORBConstants; 15 16 public class ThreadPoolManagerImpl implements ThreadPoolManager 17 { 18 private ThreadPool threadPool ; 19 20 public ThreadPoolManagerImpl( ThreadGroup tg ) 21 { 22 threadPool = new ThreadPoolImpl( tg, 30 ORBConstants.THREADPOOL_DEFAULT_NAME ) ; 31 } 32 33 40 public ThreadPool getThreadPool(String threadpoolId) 41 throws NoSuchThreadPoolException { 42 43 return threadPool; 44 } 45 46 54 public ThreadPool getThreadPool(int numericIdForThreadpool) 55 throws NoSuchThreadPoolException { 56 57 return threadPool; 58 } 59 60 66 public int getThreadPoolNumericId(String threadpoolId) { 67 return 0; 68 } 69 70 74 public String getThreadPoolStringId(int numericIdForThreadpool) { 75 return ""; 76 } 77 78 81 public ThreadPool getDefaultThreadPool() { 82 return threadPool; 83 } 84 85 89 public ThreadPoolChooser getThreadPoolChooser(String componentId) { 90 return null; 93 } 94 99 public ThreadPoolChooser getThreadPoolChooser(int componentIndex) { 100 return null; 103 } 104 105 109 public void setThreadPoolChooser(String componentId, ThreadPoolChooser aThreadPoolChooser) { 110 } 113 114 119 public int getThreadPoolChooserNumericId(String componentId) { 120 return 0; 123 } 124 125 } 126 127 | Popular Tags |