Package com.sun.corba.ee.spi.threadpool
Interface ThreadPoolManager
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
ThreadPoolManagerImpl
public interface ThreadPoolManager extends java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThreadPool
getDefaultThreadPool()
Returns the first instance of ThreadPool in the ThreadPoolManagerThreadPool
getThreadPool(int numericIdForThreadpool)
This method will return an instance of the threadpool given a numeric threadpoolId.ThreadPool
getThreadPool(java.lang.String threadpoolId)
This method will return an instance of the threadpool given a threadpoolId, that can be used by any component in the app.ThreadPoolChooser
getThreadPoolChooser(int componentIndex)
Return an instance of ThreadPoolChooser based on the componentIndex that was passed as argument.ThreadPoolChooser
getThreadPoolChooser(java.lang.String componentId)
Return an instance of ThreadPoolChooser based on the componentId that was passed as argumentint
getThreadPoolChooserNumericId(java.lang.String componentId)
Gets the numeric index associated with the componentId specified for a ThreadPoolChooser.int
getThreadPoolNumericId(java.lang.String threadpoolId)
This method is used to return the numeric id of the threadpool, given a String threadpoolId.java.lang.String
getThreadPoolStringId(int numericIdForThreadpool)
Return a String Id for a numericId of a threadpool managed by the threadpool managervoid
setThreadPoolChooser(java.lang.String componentId, ThreadPoolChooser aThreadPoolChooser)
Sets a ThreadPoolChooser for a particular componentId in the ThreadPoolManager.
-
-
-
Method Detail
-
getThreadPool
ThreadPool getThreadPool(java.lang.String threadpoolId) throws NoSuchThreadPoolException
This method will return an instance of the threadpool given a threadpoolId, that can be used by any component in the app. server.- Throws:
NoSuchThreadPoolException
- thrown when invalid threadpoolId is passed as a parameter
-
getThreadPool
ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException
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- Throws:
NoSuchThreadPoolException
- thrown when invalidnumericIdForThreadpool is passed as a parameter
-
getThreadPoolNumericId
int getThreadPoolNumericId(java.lang.String threadpoolId)
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
-
getThreadPoolStringId
java.lang.String getThreadPoolStringId(int numericIdForThreadpool)
Return a String Id for a numericId of a threadpool managed by the threadpool manager
-
getDefaultThreadPool
ThreadPool getDefaultThreadPool()
Returns the first instance of ThreadPool in the ThreadPoolManager
-
getThreadPoolChooser
ThreadPoolChooser getThreadPoolChooser(java.lang.String componentId)
Return an instance of ThreadPoolChooser based on the componentId that was passed as argument
-
getThreadPoolChooser
ThreadPoolChooser getThreadPoolChooser(int componentIndex)
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
-
setThreadPoolChooser
void setThreadPoolChooser(java.lang.String componentId, ThreadPoolChooser aThreadPoolChooser)
Sets a ThreadPoolChooser for a particular componentId in the ThreadPoolManager. This would enable any component to add a ThreadPoolChooser for their specific use
-
getThreadPoolChooserNumericId
int getThreadPoolChooserNumericId(java.lang.String componentId)
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)
-
-