public abstract class PythonExecutorBase extends ScriptExecutor
Modifier and Type | Class and Description |
---|---|
static class |
PythonExecutorBase.PythonExecutableName
Enum of possible executables that can be launched by this executor.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PYTHON_EXTENSION |
externalScriptExecutableName, ignoreExceptions
Constructor and Description |
---|
PythonExecutorBase(boolean ensureExecutableExists) |
PythonExecutorBase(PythonExecutorBase.PythonExecutableName pythonExecutableName,
boolean ensureExecutableExists) |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getApproximateCommandLine()
Return a (not necessarily executable) string representing the current command line for this executor
for error reporting purposes.
|
ScriptExecutorException |
getScriptException(java.lang.String message)
Return an exception specific to this executor type, to be thrown on error conditions.
|
executableMissing, executeCuratedArgs, executeCuratedArgsAndGetOutput, externalExecutableExists, getExceptionMessageFromScriptError, setIgnoreExceptions
public static final java.lang.String PYTHON_EXTENSION
public PythonExecutorBase(boolean ensureExecutableExists)
ensureExecutableExists
- throw if the python executable cannot be locatedpublic PythonExecutorBase(PythonExecutorBase.PythonExecutableName pythonExecutableName, boolean ensureExecutableExists)
pythonExecutableName
- name of the python executable to startensureExecutableExists
- throw if the python executable cannot be foundpublic ScriptExecutorException getScriptException(java.lang.String message)
getScriptException
in class ScriptExecutor
message
- public abstract java.lang.String getApproximateCommandLine()
getApproximateCommandLine
in class ScriptExecutor