Interface PatchExecutionService
-
- All Known Implementing Classes:
DefaultPatchExecutionService
public interface PatchExecutionServiceService for patch execution management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PatchExecutionModelcreatePatchExecution(Patch patch)Creates patch execution for givenPatch.java.util.List<PatchExecutionModel>getExecutedPatches()Returns list of all executed patchesPatchExecutionModelgetLatestPatchExecutionById(java.lang.String patchId)Returns the latestPatchExecutionModelbased on the execution time.PatchExecutionModelgetPatchExecutionById(java.lang.String patchId)ReturnsPatchExecutionModelfor specific patch idPatchExecutionModelgetSessionPatchExecution()RetrievesPatchExecutionModelfrom Jalo session.voidregisterPatchExecution(PatchExecutionModel patch)Sets execution time and status for patch execution and saves thePatchExecutionModel.voidregisterPatchExecutionError(java.lang.String log)Sets execution time, log message andExecutionStatus.ERRORstatus for current patch execution stored in session and saves it.
-
-
-
Method Detail
-
getExecutedPatches
java.util.List<PatchExecutionModel> getExecutedPatches()
Returns list of all executed patches- Returns:
- patches list of
PatchExecutionModel
-
getPatchExecutionById
PatchExecutionModel getPatchExecutionById(java.lang.String patchId)
ReturnsPatchExecutionModelfor specific patch id- Parameters:
patchId- patch ID- Returns:
PatchExecutionModelornullif not exists
-
getLatestPatchExecutionById
PatchExecutionModel getLatestPatchExecutionById(java.lang.String patchId)
Returns the latestPatchExecutionModelbased on the execution time.- Parameters:
patchId- patch ID- Returns:
- the latest
PatchExecutionModelbased on the execution time
-
registerPatchExecution
void registerPatchExecution(PatchExecutionModel patch)
Sets execution time and status for patch execution and saves thePatchExecutionModel.- Parameters:
patch-PatchExecutionModel
-
registerPatchExecutionError
void registerPatchExecutionError(java.lang.String log)
Sets execution time, log message andExecutionStatus.ERRORstatus for current patch execution stored in session and saves it.- Parameters:
log- execution error log
-
createPatchExecution
PatchExecutionModel createPatchExecution(Patch patch)
Creates patch execution for givenPatch.- Parameters:
patch-Patch- Returns:
PatchExecutionModel
-
getSessionPatchExecution
PatchExecutionModel getSessionPatchExecution()
RetrievesPatchExecutionModelfrom Jalo session.- Returns:
PatchExecutionModel
-
-