Interface PatchExecutionService
- All Known Implementing Classes:
DefaultPatchExecutionService
public interface PatchExecutionService
Service for patch execution management.
-
Method Summary
Modifier and TypeMethodDescriptioncreatePatchExecution(Patch patch) Creates patch execution for givenPatch.Returns list of all executed patchesgetLatestPatchExecutionById(String patchId) Returns the latestPatchExecutionModelbased on the execution time.getPatchExecutionById(String patchId) ReturnsPatchExecutionModelfor specific patch idRetrievesPatchExecutionModelfrom Jalo session.voidSets execution time and status for patch execution and saves thePatchExecutionModel.voidSets execution time, log message andExecutionStatus.ERRORstatus for current patch execution stored in session and saves it.
-
Method Details
-
getExecutedPatches
List<PatchExecutionModel> getExecutedPatches()Returns list of all executed patches- Returns:
- patches list of
PatchExecutionModel
-
getPatchExecutionById
ReturnsPatchExecutionModelfor specific patch id- Parameters:
patchId- patch ID- Returns:
PatchExecutionModelornullif not exists
-
getLatestPatchExecutionById
Returns the latestPatchExecutionModelbased on the execution time.- Parameters:
patchId- patch ID- Returns:
- the latest
PatchExecutionModelbased on the execution time
-
registerPatchExecution
Sets execution time and status for patch execution and saves thePatchExecutionModel.- Parameters:
patch-PatchExecutionModel
-
registerPatchExecutionError
Sets execution time, log message andExecutionStatus.ERRORstatus for current patch execution stored in session and saves it.- Parameters:
log- execution error log
-
createPatchExecution
Creates patch execution for givenPatch.- Parameters:
patch-Patch- Returns:
PatchExecutionModel
-
getSessionPatchExecution
PatchExecutionModel getSessionPatchExecution()RetrievesPatchExecutionModelfrom Jalo session.- Returns:
PatchExecutionModel
-