Package com.powsybl.computation.local
Interface LocalCommandExecutor
- All Known Implementing Classes:
AbstractLocalCommandExecutor
,DockerLocalCommandExecutor
,UnixLocalCommandExecutor
,WindowsLocalCommandExecutor
public interface LocalCommandExecutor
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
execute
(String program, long timeoutSecondes, List<String> args, Path outFile, Path errFile, Path workingDir, Map<String, String> env) int
execute
(String program, List<String> args, Path outFile, Path errFile, Path workingDir, Map<String, String> env) void
void
stopForcibly
(Path workingDir)
-
Method Details
-
execute
int execute(String program, List<String> args, Path outFile, Path errFile, Path workingDir, Map<String, String> env) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
execute
default int execute(String program, long timeoutSecondes, List<String> args, Path outFile, Path errFile, Path workingDir, Map<String, String> env) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
stop
-
stopForcibly
- Throws:
InterruptedException
-