Interface ExecutionHistoryRepository
public interface ExecutionHistoryRepository
Repository storing execution executionHistory by scenario.
-
Method Summary
Modifier and TypeMethodDescriptiondeleteExecutions(Set<Long> executionsIds) getExecution(String scenarioId, Long reportId) getExecutions(String scenarioId) getExecutionSummary(Long executionId) getLastExecutions(List<String> scenarioIds) intstore(String scenarioId, ExecutionHistory.DetachedExecution executionProperties) Add a report for a given scenario.voidupdate(String scenarioId, ExecutionHistory.Execution updatedExecution) Override a previously storedExecutionHistory.Execution.
-
Method Details
-
store
ExecutionHistory.Execution store(String scenarioId, ExecutionHistory.DetachedExecution executionProperties) throws IllegalStateException Add a report for a given scenario.- Returns:
- execution ID
- Throws:
IllegalStateException- when storage for scenario cannot be created
-
getLastExecutions
- Parameters:
scenarioIds-- Returns:
- the last report. Key of the map are scenarioIds
-
getExecutions
- Returns:
- last reports of the indicated scenario.
-
getExecutions
List<ExecutionHistory.ExecutionSummary> getExecutions() -
getExecutionSummary
-
getExecution
ExecutionHistory.Execution getExecution(String scenarioId, Long reportId) throws ReportNotFoundException - Returns:
- the matching
ExecutionHistory.Execution - Throws:
ReportNotFoundException
-
getExecutionReportMatchKeyword
-
update
Override a previously storedExecutionHistory.Execution. -
setAllRunningExecutionsToKO
int setAllRunningExecutionsToKO() -
getExecutionsWithStatus
-
deleteExecutions
-