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()
Executes ETL based on a specified configuration.
|
ExecutionStatistics |
execute(ProgressIndicator indicator)
Executes ETL based on a specified configuration.
|
java.util.Map<java.lang.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(java.util.Map<java.lang.String,?> properties) |
getConfiguration, isJmxEnabled, isSuppressStatistics, newExecutor, newExecutor, newExecutor, prepare, run, setConfiguration, setJmxEnabled, setSuppressStatistics
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public 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 java.io.IOException
resource
- configuration resource.java.io.IOException
public java.util.Map<java.lang.String,?> getProperties()
public void setProperties(java.util.Map<java.lang.String,?> properties)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public ExecutionStatistics call() throws EtlExecutorException
execute()
.call
in interface java.util.concurrent.Callable<ExecutionStatistics>
call
in class EtlExecutor
EtlExecutorException
public ExecutionStatistics execute() throws EtlExecutorException
EtlExecutor
execute
in class EtlExecutor
EtlExecutorException
- if ETL fails.EtlExecutor.execute(scriptella.interactive.ProgressIndicator)
public ExecutionStatistics execute(ProgressIndicator indicator) throws EtlExecutorException
EtlExecutor
execute
in class EtlExecutor
indicator
- progress indicator to use.EtlExecutorException
- if ETL fails.Copyright © Copyright 2006-2019 The Scriptella Project Team.