public final class BatchSEEnvironment extends Object implements BatchEnvironment
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_FILE_NAME |
static String |
JOB_REPOSITORY_TYPE_KEY |
static String |
REPOSITORY_TYPE_IN_MEMORY |
static String |
REPOSITORY_TYPE_INFINISPAN |
static String |
REPOSITORY_TYPE_JDBC |
static String |
REPOSITORY_TYPE_MONGODB |
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.
|
JobRepository |
getJobRepository()
Returns the job repository used for this environment.
|
JobXmlResolver |
getJobXmlResolver()
Returns the job XML resolver used to locate the job XML content.
|
TransactionManager |
getTransactionManager()
Returns a transaction manager to be used for executions that require a transaction.
|
void |
submitTask(JobTask task)
Submits a
runnable task for execution. |
public static final String CONFIG_FILE_NAME
public static final String JOB_REPOSITORY_TYPE_KEY
public static final String REPOSITORY_TYPE_IN_MEMORY
public static final String REPOSITORY_TYPE_JDBC
public static final String REPOSITORY_TYPE_MONGODB
public static final String REPOSITORY_TYPE_INFINISPAN
public ClassLoader getClassLoader()
BatchEnvironment
getClassLoader
in interface BatchEnvironment
public ArtifactFactory getArtifactFactory()
BatchEnvironment
getArtifactFactory
in interface BatchEnvironment
public void submitTask(JobTask task)
BatchEnvironment
runnable
task for execution.submitTask
in interface BatchEnvironment
task
- the task to submitpublic TransactionManager getTransactionManager()
BatchEnvironment
getTransactionManager
in interface BatchEnvironment
public JobRepository getJobRepository()
BatchEnvironment
getJobRepository
in interface BatchEnvironment
public JobXmlResolver getJobXmlResolver()
BatchEnvironment
getJobXmlResolver
in interface BatchEnvironment
public Properties getBatchConfigurationProperties()
BatchEnvironment
getBatchConfigurationProperties
in interface BatchEnvironment
Copyright © 2017 JBoss by Red Hat. All rights reserved.