|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.driver.spring.BatchEtlExecutorBean
public class BatchEtlExecutorBean
Batched implementation to run 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 Summary | |
|---|---|
BatchEtlExecutorBean()
Creates scripts executor. |
|
| Method Summary | |
|---|---|
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(scriptella.interactive.ProgressIndicator progressIndicator)
Sets progress indicator to use. |
void |
setProperties(java.util.Map<java.lang.String,?> properties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchEtlExecutorBean()
| Method Detail |
|---|
public void setJmxEnabled(boolean jmxEnabled)
public void setProgressIndicator(scriptella.interactive.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.Runnable
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||