public abstract class ScriptExecutor
extends java.lang.Object
getApproximateCommandLine()
getScriptException(java.lang.String)
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
externalScriptExecutableName |
protected boolean |
ignoreExceptions |
Constructor and Description |
---|
ScriptExecutor(java.lang.String externalScriptExecutableName) |
Modifier and Type | Method and Description |
---|---|
protected void |
executableMissing() |
protected boolean |
executeCuratedArgs(java.lang.String[] commandLineArguments)
Execute the script represented by the arguments in
commandLineArguments . |
boolean |
externalExecutableExists() |
abstract java.lang.String |
getApproximateCommandLine()
Return a (not necessarily executable) string representing the command line for this executor for error
reporting purposes.
|
abstract ScriptExecutorException |
getScriptException(java.lang.String message)
Called by the script executor when error is encountered.
|
void |
setIgnoreExceptions(boolean ignoreExceptions)
Set to true to have the ScriptExecutor catch and ignore GATK exceptions.
|
protected final java.lang.String externalScriptExecutableName
protected boolean ignoreExceptions
public ScriptExecutor(java.lang.String externalScriptExecutableName)
externalScriptExecutableName
- Name of the script engine to run (i.e. "RScript" or "python")public boolean externalExecutableExists()
public void setIgnoreExceptions(boolean ignoreExceptions)
ignoreExceptions
- public abstract java.lang.String getApproximateCommandLine()
protected void executableMissing()
public abstract ScriptExecutorException getScriptException(java.lang.String message)
message
- String with the cause of the exception.protected boolean executeCuratedArgs(java.lang.String[] commandLineArguments)
commandLineArguments
.commandLineArguments
-