Class ProcessExecutor
java.lang.Object
org.esa.snap.core.gpf.operators.tooladapter.ProcessExecutor
Utility class wrapping the execution of an external process.
- Since:
- 5.0.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintvoidsetConsumer(ProcessOutputConsumer consumer) voidsetWorkingDirectory(File directory) voidstop()Command to isStopped the tool.
-
Constructor Details
-
ProcessExecutor
public ProcessExecutor()
-
-
Method Details
-
setConsumer
-
setWorkingDirectory
-
execute
- Throws:
IOException
-
execute
- Throws:
IOException
-
execute
public int execute(List<String> arguments, Map<String, String> envVars, File workingDirectory) throws IOException- Throws:
IOException
-
stop
public void stop()Command to isStopped the tool.
-