scriptella.tools.launcher
Class EtlLauncher
java.lang.Object
scriptella.tools.launcher.EtlLauncher
public class EtlLauncher
- extends java.lang.Object
Command line launcher.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
|
Method Summary |
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 |
setNoStat(boolean suppressStatistics)
|
void |
setProgressIndicator(scriptella.interactive.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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STD_FORMATTER
public static final java.util.logging.Formatter STD_FORMATTER
DEFAULT_FILE_NAME
public static final java.lang.String DEFAULT_FILE_NAME
- See Also:
- Constant Field Values
EtlLauncher
public EtlLauncher()
setNoStat
public void setNoStat(boolean suppressStatistics)
- Parameters:
suppressStatistics - true if statistics must be suppressed.- See Also:
EtlExecutor.setSuppressStatistics(boolean)
printVersion
protected void printVersion()
printUsage
protected void printUsage()
template
protected EtlLauncher.ErrorCode template(java.util.List<java.lang.String> args)
setProperties
public void setProperties(java.util.Map<java.lang.String,?> props)
- Sets additional properties available for ETL.
By default System.getProperties() is used.
- Parameters:
props - properties map.
setProgressIndicator
public void setProgressIndicator(scriptella.interactive.ProgressIndicator indicator)
execute
public void execute(java.io.File file)
throws scriptella.execution.EtlExecutorException
- Throws:
scriptella.execution.EtlExecutorException
resolveFile
public java.io.File resolveFile(java.io.File dir,
java.lang.String name)
throws java.io.FileNotFoundException
- 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.
- Parameters:
dir - parent directory, may be null.name - file name, may be null in this case default name is used.
- Returns:
- resolved ETL file.
- Throws:
java.io.FileNotFoundException - if ETL file cannot be found.
isFile
protected boolean isFile(java.io.File file)
- Overridable for testing.
main
public static void main(java.lang.String[] args)
Copyright © Copyright 2006-2009 The Scriptella Project Team.