public class BatchEtlExecutorBean
extends java.lang.Object
implements java.lang.Runnable, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
ETL executors for Spring IoC container.
This class exposes a set of configurable properties and provides
a Runnable invocation interface to avoid dependency on Scriptella
in application code.
Use init-method="run" to automatically start execution of ETL files on Spring initialization.
<bean class="scriptella.driver.spring.BatchEtlExecutorBean" init-method="run">
<property name="configLocations"><list>
<value>/scriptella/driver/spring/batch1.etl.xml
<value>/scriptella/driver/spring/batch2.etl.xml
</list></property>
<property name="properties">
<map>
<entry key="tableName" value="Batch"/>
</map>
</property>
</bean>
| Constructor and Description |
|---|
BatchEtlExecutorBean()
Creates scripts executor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
run()
Executes ETL files in a batch.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setConfigLocations(org.springframework.core.io.Resource[] resources)
Sets configuration locations.
|
void |
setJmxEnabled(boolean jmxEnabled) |
void |
setProgressIndicator(ProgressIndicator progressIndicator)
Sets progress indicator to use.
|
void |
setProperties(java.util.Map<java.lang.String,?> properties) |
public void setJmxEnabled(boolean jmxEnabled)
public void setProgressIndicator(ProgressIndicator progressIndicator)
By default no progress shown.
progressIndicator - progress indicator to use.public void setConfigLocations(org.springframework.core.io.Resource[] resources)
throws java.io.IOException
resources - configuration resources.java.io.IOException - if I/O error occurspublic void setProperties(java.util.Map<java.lang.String,?> properties)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void run()
run in interface java.lang.Runnablepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionCopyright © Copyright 2006-2019 The Scriptella Project Team.