Class ThreadPoolManagerImpl
java.lang.Object
com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolManagerImpl
- All Implemented Interfaces:
ThreadPoolManager,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the first instance of ThreadPool in the ThreadPoolManagergetThreadPool(int numericIdForThreadpool) This method will return an instance of the threadpool given a numeric threadpoolId.getThreadPool(String threadpoolId) This method will return an instance of the threadpool given a threadpoolId, that can be used by any component in the app. server.getThreadPoolChooser(int componentIndex) Return an instance of ThreadPoolChooser based on the componentIndex that was passed as argument.getThreadPoolChooser(String componentId) Return an instance of ThreadPoolChooser based on the componentId that was passed as argumentintgetThreadPoolChooserNumericId(String componentId) Gets the numeric index associated with the componentId specified for a ThreadPoolChooser.intgetThreadPoolNumericId(String threadpoolId) This method is used to return the numeric id of the threadpool, given a String threadpoolId.getThreadPoolStringId(int numericIdForThreadpool) Return a String Id for a numericId of a threadpool managed by the threadpool managervoidsetThreadPoolChooser(String componentId, ThreadPoolChooser aThreadPoolChooser) Sets a ThreadPoolChooser for a particular componentId in the ThreadPoolManager.
-
Constructor Details
-
ThreadPoolManagerImpl
public ThreadPoolManagerImpl()
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getThreadPool
This method will return an instance of the threadpool given a threadpoolId, that can be used by any component in the app. server.- Specified by:
getThreadPoolin interfaceThreadPoolManager- Throws:
NoSuchThreadPoolException- thrown when invalid threadpoolId is passed as a parameter
-
getThreadPool
This method will return an instance of the threadpool given a numeric threadpoolId. This method will be used by the ORB to support the functionality of dedicated threadpool for EJB beans- Specified by:
getThreadPoolin interfaceThreadPoolManager- Throws:
NoSuchThreadPoolException- thrown when invalidnumericIdForThreadpool is passed as a parameter
-
getThreadPoolNumericId
This method is used to return the numeric id of the threadpool, given a String threadpoolId. This is used by the POA interceptors to add the numeric threadpool Id, as a tagged component in the IOR. This is used to provide the functionality of dedicated threadpool for EJB beans- Specified by:
getThreadPoolNumericIdin interfaceThreadPoolManager
-
getThreadPoolStringId
Return a String Id for a numericId of a threadpool managed by the threadpool manager- Specified by:
getThreadPoolStringIdin interfaceThreadPoolManager
-
getDefaultThreadPool
Returns the first instance of ThreadPool in the ThreadPoolManager- Specified by:
getDefaultThreadPoolin interfaceThreadPoolManager
-
getThreadPoolChooser
Return an instance of ThreadPoolChooser based on the componentId that was passed as argument- Specified by:
getThreadPoolChooserin interfaceThreadPoolManager
-
getThreadPoolChooser
Return an instance of ThreadPoolChooser based on the componentIndex that was passed as argument. This is added for improved performance so that the caller does not have to pay the cost of computing hashcode for the componentId- Specified by:
getThreadPoolChooserin interfaceThreadPoolManager
-
setThreadPoolChooser
Sets a ThreadPoolChooser for a particular componentId in the ThreadPoolManager. This would enable any component to add a ThreadPoolChooser for their specific use- Specified by:
setThreadPoolChooserin interfaceThreadPoolManager
-
getThreadPoolChooserNumericId
Gets the numeric index associated with the componentId specified for a ThreadPoolChooser. This method would help the component call the more efficient implementation i.e. getThreadPoolChooser(int componentIndex)- Specified by:
getThreadPoolChooserNumericIdin interfaceThreadPoolManager
-