Class MongoJobExplorerFactoryBean
java.lang.Object
org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
org.springframework.batch.core.explore.support.MongoJobExplorerFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<JobExplorer>,org.springframework.beans.factory.InitializingBean
public class MongoJobExplorerFactoryBean
extends AbstractJobExplorerFactoryBean
implements org.springframework.beans.factory.InitializingBean
This factory bean creates a job explorer backed by MongoDB. It requires a mongo
template and a mongo transaction manager. The mongo template must be configured
with a
MappingMongoConverter having a MapKeyDotReplacement set to a non
null value. See MongoDBJobRepositoryIntegrationTests for an example. This is
required to support execution context keys containing dots (like "step.type" or
"batch.version")- Since:
- 5.2.0
- Author:
- Mahmoud Ben Hassine
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ExecutionContextDaoCreates an execution context instance data access object (DAO).protected JobExecutionDaoCreates a job execution data access object (DAO).protected JobInstanceDaoCreates a job instance data access object (DAO).protected StepExecutionDaoCreates a step execution data access object (DAO).voidsetMongoOperations(org.springframework.data.mongodb.core.MongoOperations mongoOperations) Methods inherited from class org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
getObject, getObjectType, getTransactionManager, isSingleton, setTransactionAttributeSource, setTransactionManager
-
Constructor Details
-
MongoJobExplorerFactoryBean
public MongoJobExplorerFactoryBean()
-
-
Method Details
-
setMongoOperations
public void setMongoOperations(org.springframework.data.mongodb.core.MongoOperations mongoOperations) -
createJobInstanceDao
Description copied from class:AbstractJobExplorerFactoryBeanCreates a job instance data access object (DAO).- Specified by:
createJobInstanceDaoin classAbstractJobExplorerFactoryBean- Returns:
- a fully configured
JobInstanceDaoimplementation.
-
createJobExecutionDao
Description copied from class:AbstractJobExplorerFactoryBeanCreates a job execution data access object (DAO).- Specified by:
createJobExecutionDaoin classAbstractJobExplorerFactoryBean- Returns:
- a fully configured
JobExecutionDaoimplementation.
-
createStepExecutionDao
Description copied from class:AbstractJobExplorerFactoryBeanCreates a step execution data access object (DAO).- Specified by:
createStepExecutionDaoin classAbstractJobExplorerFactoryBean- Returns:
- a fully configured
StepExecutionDaoimplementation.
-
createExecutionContextDao
Description copied from class:AbstractJobExplorerFactoryBeanCreates an execution context instance data access object (DAO).- Specified by:
createExecutionContextDaoin classAbstractJobExplorerFactoryBean- Returns:
- fully configured
ExecutionContextDaoimplementation.
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractJobExplorerFactoryBean- Throws:
Exception
-