public class EtlExecutorBean extends EtlExecutor implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
EtlExecutor for Spring IoC container.
This class exposes a set of configurable properties and provides
a Callable invocation interface to avoid dependency on Scriptella
in application code.
| Constructor and Description |
|---|
EtlExecutorBean()
Creates scripts executor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ExecutionStatistics |
call()
Simply calls
execute(). |
ExecutionStatistics |
execute() |
ExecutionStatistics |
execute(ProgressIndicator indicator) |
Map<String,?> |
getProperties() |
void |
setAutostart(boolean autostart)
Sets autostart property.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setConfigLocation(org.springframework.core.io.Resource resource)
Sets configuration location.
|
void |
setProgressIndicator(ProgressIndicator progressIndicator)
Sets progress indicator to use.
|
void |
setProperties(Map<String,?> properties) |
getConfiguration, isJmxEnabled, isSuppressStatistics, newExecutor, newExecutor, newExecutor, prepare, run, setConfiguration, setJmxEnabled, setSuppressStatisticspublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setAutostart(boolean autostart)
autostart - true if executor must be automatically runned after initialization.
Default value is false.public void setProgressIndicator(ProgressIndicator progressIndicator)
By default no progress shown.
progressIndicator - progress indicator to use.public void setConfigLocation(org.springframework.core.io.Resource resource)
throws IOException
resource - configuration resource.IOExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic ExecutionStatistics call() throws EtlExecutorException
execute().call in interface Callable<ExecutionStatistics>call in class EtlExecutorEtlExecutorExceptionpublic ExecutionStatistics execute() throws EtlExecutorException
execute in class EtlExecutorEtlExecutorExceptionpublic ExecutionStatistics execute(ProgressIndicator indicator) throws EtlExecutorException
execute in class EtlExecutorEtlExecutorExceptionCopyright © 2006–2019. All rights reserved.