Package com.powsybl.computation
Class DefaultExecutionReport
- java.lang.Object
-
- com.powsybl.computation.DefaultExecutionReport
-
- All Implemented Interfaces:
ExecutionReport
public class DefaultExecutionReport extends Object implements ExecutionReport
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description DefaultExecutionReport(Path workingDirectory)
Create an execution report with no execution error.DefaultExecutionReport(Path workingDirectory, List<ExecutionError> errors)
Create an execution report with the specified list of execution errors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ExecutionError>
getErrors()
Optional<InputStream>
getStdErr(Command command, int index)
Optional<InputStream>
getStdOut(Command command, int index)
void
log()
-
-
-
Constructor Detail
-
DefaultExecutionReport
public DefaultExecutionReport(Path workingDirectory)
Create an execution report with no execution error.
-
DefaultExecutionReport
public DefaultExecutionReport(Path workingDirectory, List<ExecutionError> errors)
Create an execution report with the specified list of execution errors.
-
-
Method Detail
-
getErrors
public List<ExecutionError> getErrors()
- Specified by:
getErrors
in interfaceExecutionReport
-
log
public void log()
- Specified by:
log
in interfaceExecutionReport
-
getStdOut
public Optional<InputStream> getStdOut(Command command, int index)
- Specified by:
getStdOut
in interfaceExecutionReport
-
getStdErr
public Optional<InputStream> getStdErr(Command command, int index)
- Specified by:
getStdErr
in interfaceExecutionReport
-
-