Class ProcessExecutor
- java.lang.Object
-
- org.esa.snap.core.gpf.operators.tooladapter.ProcessExecutor
-
public class ProcessExecutor extends Object
Utility class wrapping the execution of an external process.- Since:
- 5.0.4
-
-
Constructor Summary
Constructors Constructor Description ProcessExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(List<String> arguments)
int
execute(List<String> arguments, Map<String,String> envVars)
int
execute(List<String> arguments, Map<String,String> envVars, File workingDirectory)
void
setConsumer(ProcessOutputConsumer consumer)
void
setWorkingDirectory(File directory)
void
stop()
Command to isStopped the tool.
-
-
-
Method Detail
-
setConsumer
public void setConsumer(ProcessOutputConsumer consumer)
-
setWorkingDirectory
public void setWorkingDirectory(File directory)
-
execute
public int execute(List<String> arguments) throws IOException
- Throws:
IOException
-
execute
public int execute(List<String> arguments, Map<String,String> envVars) throws IOException
- 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.
-
-