Class JNDIDelegatingThreadPoolServiceImpl
- java.lang.Object
-
- com.ibm.jbatch.container.services.impl.JNDIDelegatingThreadPoolServiceImpl
-
- All Implemented Interfaces:
BatchContainerConstants,IBatchServiceBase,IBatchThreadPoolService
public class JNDIDelegatingThreadPoolServiceImpl extends Object implements IBatchThreadPoolService, BatchContainerConstants
-
-
Field Summary
Fields Modifier and Type Field Description StringDEFAULT_JNDI_LOCATION-
Fields inherited from interface com.ibm.jbatch.container.util.BatchContainerConstants
BATCH_ADMIN_CONFIG_FILE, BATCH_INTEGRATOR_CONFIG_FILE, BOUNDED_THREADPOOL_MAX_POOL_SIZE, DB_PASSWORD, DB_SCHEMA, DB_USER, DEFAULT_DB_SCHEMA, DEFAULT_JDBC_DRIVER, DEFAULT_JDBC_JNDI_NAME, DEFAULT_JDBC_URL, J2SE_MODE, JDBC_DRIVER, JDBC_URL, JNDI_NAME, THREADPOOL_JNDI_LOCATION
-
-
Constructor Summary
Constructors Constructor Description JNDIDelegatingThreadPoolServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParallelTaskResultexecuteParallelTask(Runnable work, Object config)Runs the given task.voidexecuteTask(Runnable work, Object config)(Required) Runs the given task.voidinit(IBatchConfig batchConfig)voidshutdown()
-
-
-
Field Detail
-
DEFAULT_JNDI_LOCATION
public final String DEFAULT_JNDI_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(IBatchConfig batchConfig)
- Specified by:
initin interfaceIBatchServiceBase
-
shutdown
public void shutdown() throws BatchContainerServiceException- Specified by:
shutdownin interfaceIBatchServiceBase- Throws:
BatchContainerServiceException
-
executeTask
public void executeTask(Runnable work, Object config)
Description copied from interface:IBatchThreadPoolService(Required) Runs the given task. A task is usually short lived- Specified by:
executeTaskin interfaceIBatchThreadPoolService- Parameters:
work- The task to executeconfig- Optional configuration to customize the execution. The Container always passes a null value. Typically used when other user plugins wish to use the ExecutorService to execute tasks.
-
executeParallelTask
public ParallelTaskResult executeParallelTask(Runnable work, Object config)
Description copied from interface:IBatchThreadPoolServiceRuns the given task. A task is usually short lived- Specified by:
executeParallelTaskin interfaceIBatchThreadPoolService- Parameters:
work- The task to executeconfig- Optional configuration to customize the execution. The Container always passes a null value. Typically used when other user plugins wish to use the ExecutorService to execute tasks.
-
-