Class ProcessExecutor
java.lang.Object
org.tasktide.engine.executor.ProcessExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorProcessExecutor(String dateFormat, int expiration) Construct with specific constants -
Method Summary
Modifier and TypeMethodDescriptionRun provided command returningTaskLoggingExecutes the provided script through Java Lang ProcessBuilderFetch stdout log fileFetch stdout log fileGet process wrapperbooleanGet whether to escape stringvoidsetEscapeStrings(boolean escapeStrings) Set whether to escape stringsvoidsetProcessWrapper(String processWrapper) Process wrapper
-
Constructor Details
-
ProcessExecutor
Construct with specific constants- Parameters:
dateFormat-expiration-
-
ProcessExecutor
public ProcessExecutor()Default constructor
-
-
Method Details
-
fetchStdoutLog
-
fetchStderrLog
-
executeScript
public Process executeScript(String script, String label, Map<String, String> vars) throws IOException, InterruptedExceptionExecutes the provided script through Java Lang ProcessBuilder- Parameters:
script-label-- Returns:
- Process
- Throws:
IOExceptionInterruptedException
-
execute
public TaskLogging execute(String command, String label, Map<String, String> vars) throws IOException, InterruptedExceptionRun provided command returningTaskLogging- Parameters:
command-label-- Returns:
TaskLogging- Throws:
IOExceptionInterruptedException
-
getProcessWrapper
-
setProcessWrapper
-
isEscapeStrings
public boolean isEscapeStrings()Get whether to escape string- Returns:
-
setEscapeStrings
public void setEscapeStrings(boolean escapeStrings) Set whether to escape strings- Parameters:
escapeStrings-
-