public class FerretTool extends Tool
| Constructor and Description |
|---|
FerretTool()
The default constructor that reads the config file and readies the tool to be used.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDataDir() |
java.lang.String |
getScriptDir() |
java.lang.String |
getTempDir() |
java.lang.String |
run_header(java.lang.String driver,
java.lang.String jnl,
java.lang.String cacheKey)
Run Ferret and capture STDOUT into the header.xml file for this data set.
|
void |
run(java.lang.String driver,
java.lang.String jnl,
java.lang.String cacheKey,
java.lang.String temporary_filename,
java.lang.String output_filename)
This runs the tool and captures the output to a debug file.
|
Task |
task(RuntimeEnvironment runTimeEnv,
java.lang.String[] args,
long timeLimit,
java.lang.String scriptDir,
java.lang.String tempDir)
The construct a Task which is the definition of the command line arguments for particular invocation of the Tool.
|
getResourcePathpublic FerretTool()
throws java.lang.Exception
java.lang.Exceptionpublic void run(java.lang.String driver,
java.lang.String jnl,
java.lang.String cacheKey,
java.lang.String temporary_filename,
java.lang.String output_filename)
throws java.lang.Exception
driver - the command to run (ferret in this case).jnl - the command file.cacheKey - the cache key (should be removed since we don't need it)output_filename - where to write STDOUT, can be a debug file or the header.xml file.java.lang.Exceptionpublic java.lang.String run_header(java.lang.String driver,
java.lang.String jnl,
java.lang.String cacheKey)
throws java.lang.Exception
driver - which command to run (ferret in this case).jnl - the file with the commands to run.cacheKey - not used, should be removed.java.lang.Exceptionpublic Task task(RuntimeEnvironment runTimeEnv, java.lang.String[] args, long timeLimit, java.lang.String scriptDir, java.lang.String tempDir) throws java.lang.Exception
runTimeEnv - the Java instantiation of the shell run time environment for the invocation of this command.args - the command line argumentstimeLimit - how long to let it runscriptDir - where to look for the "driver" script.tempDir - where to write temp files if you need it.java.lang.Exceptionpublic java.lang.String getDataDir()
public java.lang.String getTempDir()
public java.lang.String getScriptDir()