public final class BatchSEEnvironment extends Object implements BatchEnvironment
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_FILE_NAME |
| Constructor and Description |
|---|
BatchSEEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
ArtifactFactory |
getArtifactFactory()
Gets an implementation of ArtifactFactory appropriate for the current runtime environment.
|
Properties |
getBatchConfigurationProperties()
Gets configuration data for batch container.
|
ClassLoader |
getClassLoader()
Gets the class loader suitable for loading application classes and batch artifacts.
|
TransactionManager |
getTransactionManager()
Returns a transaction manager to be used for executions that require a transaction.
|
<T> Future<T> |
submitTask(Callable<T> task)
Submits a value-returning task for execution and returns a
future representing the pending
results of the task. |
Future<?> |
submitTask(Runnable task)
|
<T> Future<T> |
submitTask(Runnable task,
T result)
|
public static final String CONFIG_FILE_NAME
public ClassLoader getClassLoader()
BatchEnvironmentgetClassLoader in interface BatchEnvironmentpublic ArtifactFactory getArtifactFactory()
BatchEnvironmentgetArtifactFactory in interface BatchEnvironmentpublic Future<?> submitTask(Runnable task)
BatchEnvironmentrunnable task for execution and returns a future representing that
task. The futures geth method will return null upon successful
completion.submitTask in interface BatchEnvironmenttask - the task to submitExecutorService.submit(Runnable)public <T> Future<T> submitTask(Runnable task, T result)
BatchEnvironmentrunnable task for execution and returns a future representing that
task. The future's get method will return the given result upon successful completion.submitTask in interface BatchEnvironmentT - the type of the resulttask - the task to submitresult - the result to returnfuture representing pending completion of the taskExecutorService.submit(Runnable, Object)public <T> Future<T> submitTask(Callable<T> task)
BatchEnvironmentfuture representing the pending
results of the task. The future's get method will return the task's result upon successful
completion.submitTask in interface BatchEnvironmentT - the type of the resulttask - the task to submitfuture representing pending completion of the taskExecutorService.submit(java.util.concurrent.Callable)public TransactionManager getTransactionManager()
BatchEnvironmentgetTransactionManager in interface BatchEnvironmentpublic Properties getBatchConfigurationProperties()
BatchEnvironmentgetBatchConfigurationProperties in interface BatchEnvironmentCopyright © 2016 JBoss by Red Hat. All rights reserved.