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()
BatchEnvironment
getClassLoader
in interface BatchEnvironment
public ArtifactFactory getArtifactFactory()
BatchEnvironment
getArtifactFactory
in interface BatchEnvironment
public Future<?> submitTask(Runnable task)
BatchEnvironment
runnable
task for execution and returns a future
representing that
task. The futures geth
method will return null
upon successful
completion.submitTask
in interface BatchEnvironment
task
- the task to submitExecutorService.submit(Runnable)
public <T> Future<T> submitTask(Runnable task, T result)
BatchEnvironment
runnable
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 BatchEnvironment
T
- 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)
BatchEnvironment
future
representing the pending
results of the task. The future's
get method will return the task's result upon successful
completion.submitTask
in interface BatchEnvironment
T
- the type of the resulttask
- the task to submitfuture
representing pending completion of the taskExecutorService.submit(java.util.concurrent.Callable)
public TransactionManager getTransactionManager()
BatchEnvironment
getTransactionManager
in interface BatchEnvironment
public Properties getBatchConfigurationProperties()
BatchEnvironment
getBatchConfigurationProperties
in interface BatchEnvironment
Copyright © 2014 JBoss by Red Hat. All rights reserved.