Package com.powsybl.computation.local
Interface LocalCommandExecutor
-
- All Known Implementing Classes:
AbstractLocalCommandExecutor
,UnixLocalCommandExecutor
,WindowsLocalCommandExecutor
public interface LocalCommandExecutor
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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
stop(Path workingDir)
void
stopForcibly(Path workingDir)
-
-
-
Method Detail
-
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
void stop(Path workingDir)
-
stopForcibly
void stopForcibly(Path workingDir) throws InterruptedException
- Throws:
InterruptedException
-
-