public class EtlLauncher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EtlLauncher.ErrorCode
Error codes returned by the launcher.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILE_NAME |
static Formatter |
STD_FORMATTER |
| Constructor and Description |
|---|
EtlLauncher() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(File file) |
protected boolean |
isFile(File file)
Overridable for testing.
|
static void |
main(String[] args) |
protected void |
printUsage() |
protected void |
printVersion() |
File |
resolveFile(File dir,
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 |
setNoStat(boolean suppressStatistics) |
void |
setProgressIndicator(ProgressIndicator indicator) |
void |
setProperties(Map<String,?> props)
Sets additional properties available for ETL.
|
protected EtlLauncher.ErrorCode |
template(List<String> args) |
public static final Formatter STD_FORMATTER
public static final String DEFAULT_FILE_NAME
public void setNoStat(boolean suppressStatistics)
suppressStatistics - true if statistics must be suppressed.EtlExecutor.setSuppressStatistics(boolean)protected void printVersion()
protected void printUsage()
protected EtlLauncher.ErrorCode template(List<String> args)
public void setProperties(Map<String,?> props)
By default System.getProperties() is used.
props - properties map.public void setProgressIndicator(ProgressIndicator indicator)
public void execute(File file) throws EtlExecutorException
EtlExecutorExceptionpublic File resolveFile(File dir, String name) throws 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.FileNotFoundException - if ETL file cannot be found.protected boolean isFile(File file)
public static void main(String[] args)
Copyright © 2006-2012. All Rights Reserved.