public class EtlLauncher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EtlLauncher.ErrorCode
Error codes returned by the launcher.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FILE_NAME |
static java.util.logging.Formatter |
STD_FORMATTER |
Constructor and Description |
---|
EtlLauncher() |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.io.File file) |
protected boolean |
isFile(java.io.File file)
Overridable for testing.
|
static void |
main(java.lang.String[] args) |
protected void |
printUsage() |
protected void |
printVersion() |
java.io.File |
resolveFile(java.io.File dir,
java.lang.String name)
Resolves ETL file using the following rule:
if specified file exists - it is returned, otherwise if file has no extension
name +".etl.xml" file is checked for presence and returned. |
void |
setNoJmx(boolean noJmx)
Suppress JMX MBean registration for monitoring.
|
void |
setNoStat(boolean suppressStatistics) |
void |
setProgressIndicator(ProgressIndicator indicator) |
void |
setProperties(java.util.Map<java.lang.String,?> props)
Sets additional properties available for ETL.
|
protected EtlLauncher.ErrorCode |
template(java.util.List<java.lang.String> args) |
public static final java.util.logging.Formatter STD_FORMATTER
public static final java.lang.String DEFAULT_FILE_NAME
public void setNoStat(boolean suppressStatistics)
suppressStatistics
- true if statistics must be suppressed.EtlExecutor.setSuppressStatistics(boolean)
public void setNoJmx(boolean noJmx)
noJmx
- true if JMX should be suppressed.protected void printVersion()
protected void printUsage()
protected EtlLauncher.ErrorCode template(java.util.List<java.lang.String> args)
public void setProperties(java.util.Map<java.lang.String,?> props)
By default System.getProperties()
is used.
props
- properties map.public void setProgressIndicator(ProgressIndicator indicator)
public void execute(java.io.File file) throws EtlExecutorException
EtlExecutorException
public java.io.File resolveFile(java.io.File dir, java.lang.String name) throws java.io.FileNotFoundException
name
+".etl.xml" file is checked for presence and returned.dir
- parent directory, may be null.name
- file name, may be null in this case default name is used.java.io.FileNotFoundException
- if ETL file cannot be found.protected boolean isFile(java.io.File file)
public static void main(java.lang.String[] args)
Copyright © Copyright 2006-2019 The Scriptella Project Team.