Class DockerLocalCommandExecutor
- java.lang.Object
-
- com.powsybl.computation.local.test.DockerLocalCommandExecutor
-
- All Implemented Interfaces:
LocalCommandExecutor
public class DockerLocalCommandExecutor extends Object implements LocalCommandExecutor
- Author:
- Etienne Lesot
-
-
Constructor Summary
Constructors Constructor Description DockerLocalCommandExecutor(Path hostVolumePath, Path containerVolumePath, ComputationDockerConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(String program, List<String> args, Path outFile, Path errFile, Path workingDir, Map<String,String> env)
void
stop(Path path)
void
stopForcibly(Path path)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.computation.local.LocalCommandExecutor
execute
-
-
-
-
Constructor Detail
-
DockerLocalCommandExecutor
public DockerLocalCommandExecutor(Path hostVolumePath, Path containerVolumePath, ComputationDockerConfig config)
-
-
Method Detail
-
execute
public int execute(String program, List<String> args, Path outFile, Path errFile, Path workingDir, Map<String,String> env) throws IOException, InterruptedException
- Specified by:
execute
in interfaceLocalCommandExecutor
- Throws:
IOException
InterruptedException
-
stop
public void stop(Path path)
- Specified by:
stop
in interfaceLocalCommandExecutor
-
stopForcibly
public void stopForcibly(Path path)
- Specified by:
stopForcibly
in interfaceLocalCommandExecutor
-
-