|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.dsr.core.RegistryThreadPool
public class RegistryThreadPool
It lowers the overhead of extraordinary thread creation within a container
pre-configured size of thread pool. Most of the code is taken from
://unicore.svn.sourceforge.net/viewvc/unicore/wsrflite/tags/use-2.0
.1/core/src
/main/java/de/fzj/unicore/wsrflite/ResourcePool.java?revision=10715
&view=markup
| Field Summary | |
|---|---|
static String |
CORE_POOL_SIZE
property key for setting the core thread pool size for the scheduled execution service |
static String |
EXEC_CORE_POOL_SIZE
property key for setting the minimum thread pool size for the scheduled execution service |
static String |
EXEC_MAX_POOL_SIZE
property key for setting the maximum thread pool size for the scheduled execution service |
static String |
EXEC_POOL_TIMEOUT
property key for setting the timeout in millis for removing idle threads |
static String |
POOL_TIMEOUT
property key for setting the timeout in millis for removing idle threads |
| Method Summary | ||
|---|---|---|
protected static void |
configure()
Configure the pool. |
|
protected static void |
configureExecutor()
|
|
protected static void |
configureScheduler()
|
|
static
|
getCompletionService()
get an CompletionService using the Exector service |
|
static int |
getExecutorActiveThreadCount()
|
|
static int |
getExecutorCorePoolSize()
|
|
static int |
getExecutorMaxPoolSize()
|
|
static ExecutorService |
getExecutorService()
get a ExecutorService for executing tasks |
|
static int |
getScheduledExecutorActiveThreadCount()
get the number of currently active threads in the scheduler pool |
|
static int |
getScheduledExecutorCorePoolSize()
get the current minimum pool size of the scheduler pool |
|
static int |
getScheduledExecutorMaxPoolSize()
get the current maximum pool size of the scheduler pool |
|
static ScheduledExecutorService |
getScheduledExecutorService()
get a ScheduledExecutorService for executing tasks at a given
schedule |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CORE_POOL_SIZE
public static final String POOL_TIMEOUT
public static final String EXEC_CORE_POOL_SIZE
public static final String EXEC_MAX_POOL_SIZE
public static final String EXEC_POOL_TIMEOUT
| Method Detail |
|---|
public static ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService for executing tasks at a given
schedule
public static ExecutorService getExecutorService()
ExecutorService for executing tasks
public static <V> CompletionService<V> getCompletionService()
CompletionService using the Exector service
V -
protected static void configure()
Kernel
properties.
protected static void configureScheduler()
protected static void configureExecutor()
public static int getScheduledExecutorCorePoolSize()
public static int getScheduledExecutorMaxPoolSize()
public static int getScheduledExecutorActiveThreadCount()
public static int getExecutorCorePoolSize()
public static int getExecutorMaxPoolSize()
public static int getExecutorActiveThreadCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||