net.sourceforge.addam.ddlrun.runners
Class ScriptGroupRunner
java.lang.Object
net.sourceforge.addam.ddlrun.runners.ScriptGroupRunner
- All Implemented Interfaces:
- Runner
public class ScriptGroupRunner
- extends Object
- implements Runner
Used to run a group (folder) of scripts.
- Since:
- Mar 5, 2005
- Author:
- TIM3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MASTER_DRIVER
private static final String MASTER_DRIVER
- See Also:
- Constant Field Values
SEPARATOR_CHAR
private static final String SEPARATOR_CHAR
- See Also:
- Constant Field Values
readerFactory
private final ResourceReaderFactory readerFactory
scriptFilter
private final Filter scriptFilter
scriptRunnerMap
private final Map scriptRunnerMap
runLoggers
private final ArrayList runLoggers
ScriptGroupRunner
public ScriptGroupRunner(ResourceReaderFactory readerFactory,
Filter scriptFilter,
Map scriptRunnerMap)
- Constructs a ScriptGroupRunner
- Parameters:
readerFactory
- used to read the resourcesscriptFilter
- used to determine which scripts need to runscriptRunnerMap
- registry of runners by type
addRunLogger
public void addRunLogger(RunLogger logger)
logRunComplete
private void logRunComplete(String group,
long time)
throws Exception
- Throws:
Exception
logRunScript
private void logRunScript(String script,
long time)
throws Exception
- Throws:
Exception
logRunFailure
private void logRunFailure(String group,
String script,
Exception e)
throws Exception
- Throws:
Exception
run
public void run(String group)
throws Exception
- Specified by:
run
in interface Runner
- Parameters:
group
- the group that contains the list of scripts to run
- Throws:
IOException
Exception
getExtension
static String getExtension(String resource)
Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.