Package com.powsybl.security.distributed
Class SecurityAnalysisExecutionHandlers
- java.lang.Object
-
- com.powsybl.security.distributed.SecurityAnalysisExecutionHandlers
-
public final class SecurityAnalysisExecutionHandlers extends Object
Factory methods for security analysis execution handlers.- Author:
- Sylvain Leclerc
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutionHandler<SecurityAnalysisReport>
distributed(SecurityAnalysisExecutionInput input, int subtaskCount)
Create anExecutionHandler
which distributes the security analysis execution through multiple calls to itools security-analysis, as specified in argument.static void
distributedOptions(Path workingDir, SecurityAnalysisCommandOptions options, int taskCount, boolean withLogs)
static ExecutionHandler<SecurityAnalysisReport>
forwarded(SecurityAnalysisExecutionInput input)
Create anExecutionHandler
which forwards the security analysis execution through a call to itools security-analysis.static ExecutionHandler<SecurityAnalysisReport>
forwarded(SecurityAnalysisExecutionInput input, Integer forwardedTaskCount)
Create anExecutionHandler
which forwards the security analysis execution through a call to itools security-analysis, with the option --task-count.static void
forwardedOptions(Path workingDir, SecurityAnalysisCommandOptions options, Integer taskCount, boolean withLogs)
static Path
getLogPath(Path workingDir)
static Path
getLogPathForTask(Path workingDir, int taskNumber)
static Path
getOutputPathForTask(Path workingDir, int taskIndex)
static SecurityAnalysisReport
readResults(Path workingDir, int subtaskCount, boolean withLogs)
static SecurityAnalysisReport
readSingleResult(Path workingDir, boolean withLogs)
-
-
-
Method Detail
-
forwarded
public static ExecutionHandler<SecurityAnalysisReport> forwarded(SecurityAnalysisExecutionInput input)
Create anExecutionHandler
which forwards the security analysis execution through a call to itools security-analysis.
-
forwarded
public static ExecutionHandler<SecurityAnalysisReport> forwarded(SecurityAnalysisExecutionInput input, Integer forwardedTaskCount)
Create anExecutionHandler
which forwards the security analysis execution through a call to itools security-analysis, with the option --task-count.
-
distributed
public static ExecutionHandler<SecurityAnalysisReport> distributed(SecurityAnalysisExecutionInput input, int subtaskCount)
Create anExecutionHandler
which distributes the security analysis execution through multiple calls to itools security-analysis, as specified in argument.
-
readSingleResult
public static SecurityAnalysisReport readSingleResult(Path workingDir, boolean withLogs)
-
forwardedOptions
public static void forwardedOptions(Path workingDir, SecurityAnalysisCommandOptions options, Integer taskCount, boolean withLogs)
-
distributedOptions
public static void distributedOptions(Path workingDir, SecurityAnalysisCommandOptions options, int taskCount, boolean withLogs)
-
readResults
public static SecurityAnalysisReport readResults(Path workingDir, int subtaskCount, boolean withLogs)
-
-